Diff for libcfg+/src/platon/str/strdyn.c between version 1.17 and 1.18
| version 1.17, 2002/04/09 21:08:30 |
version 1.18, 2002/06/23 16:41:03 |
| Line 251 strdyn_remove_empty(ar) |
|
| Line 251 strdyn_remove_empty(ar) |
|
| } |
} |
| |
|
| char ** |
char ** |
| |
strdyn_remove_all(ar) |
| |
char **ar; |
| |
{ |
| |
register int i; |
| |
|
| |
for (i = 0; ar[i] != NULL; i++) |
| |
free(ar[i]); |
| |
|
| |
if ((ar = (char**) realloc(ar, /* 1 * */ sizeof(char*))) == NULL) |
| |
return NULL; |
| |
|
| |
ar[0] = NULL; |
| |
|
| |
return ar; |
| |
} |
| |
|
| |
char ** |
| strdyn_explode_chr(str, sep) |
strdyn_explode_chr(str, sep) |
| char *str; |
char *str; |
| int sep; |
int sep; |
Platon Group <platon@platon.org> http://platon.org/
|
|