10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * 3*3857Sstevel * Copyright 1998 Sun Microsystems, Inc. All rights reserved. 4*3857Sstevel * Use is subject to license terms. 50Sstevel@tonic-gate * 60Sstevel@tonic-gate * 70Sstevel@tonic-gate * Comments: 80Sstevel@tonic-gate * 90Sstevel@tonic-gate */ 100Sstevel@tonic-gate 110Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 120Sstevel@tonic-gate 130Sstevel@tonic-gate #include <stdlib.h> 140Sstevel@tonic-gate #include <stdio.h> 150Sstevel@tonic-gate #include <ctype.h> 160Sstevel@tonic-gate #include <string.h> 170Sstevel@tonic-gate 180Sstevel@tonic-gate void free_strarray( char **sap ) 190Sstevel@tonic-gate { 200Sstevel@tonic-gate int i; 210Sstevel@tonic-gate 220Sstevel@tonic-gate if ( sap != NULL ) { 230Sstevel@tonic-gate for ( i = 0; sap[ i ] != NULL; ++i ) { 240Sstevel@tonic-gate free( sap[ i ] ); 250Sstevel@tonic-gate } 260Sstevel@tonic-gate free( (char *)sap ); 270Sstevel@tonic-gate } 280Sstevel@tonic-gate } 29