Cross Reference: utils.c
xref
: /
osnet-11
/
usr
/
src
/
lib
/
libldap4
/
common
/
utils.c
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1
N/A
/*
1
N/A
*
1
N/A
* Copyright 1998 Sun Microsystems, Inc. All rights reserved.
1
N/A
* Use is subject to license terms.
1
N/A
*
1
N/A
*
1
N/A
* Comments:
1
N/A
*
1
N/A
*/
1
N/A
1
N/A
#
pragma
ident
"%Z%%M% %I% %E% SMI"
1
N/A
1
N/A
#
include
<
stdlib.h
>
1
N/A
#
include
<
stdio.h
>
1
N/A
#
include
<
ctype.h
>
1
N/A
#
include
<
string.h
>
1
N/A
1
N/A
void
free_strarray
(
char
**
sap
)
1
N/A
{
1
N/A
int
i;
1
N/A
1
N/A
if
(
sap
!=
NULL
) {
1
N/A
for
( i = 0;
sap
[ i ] !=
NULL
; ++i ) {
1
N/A
free
(
sap
[ i ] );
1
N/A
}
1
N/A
free
( (
char
*)
sap
);
1
N/A
}
1
N/A
}