1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * 3*0Sstevel@tonic-gate * Copyright %G% Sun Microsystems, Inc. All Rights Reserved 4*0Sstevel@tonic-gate * 5*0Sstevel@tonic-gate * 6*0Sstevel@tonic-gate * Comments: 7*0Sstevel@tonic-gate * 8*0Sstevel@tonic-gate */ 9*0Sstevel@tonic-gate 10*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate #include <stdlib.h> 13*0Sstevel@tonic-gate #include <stdio.h> 14*0Sstevel@tonic-gate #include <ctype.h> 15*0Sstevel@tonic-gate #include <string.h> 16*0Sstevel@tonic-gate 17*0Sstevel@tonic-gate void free_strarray( char **sap ) 18*0Sstevel@tonic-gate { 19*0Sstevel@tonic-gate int i; 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate if ( sap != NULL ) { 22*0Sstevel@tonic-gate for ( i = 0; sap[ i ] != NULL; ++i ) { 23*0Sstevel@tonic-gate free( sap[ i ] ); 24*0Sstevel@tonic-gate } 25*0Sstevel@tonic-gate free( (char *)sap ); 26*0Sstevel@tonic-gate } 27*0Sstevel@tonic-gate } 28