![]() |
![]()
| ![]() |
![]()
LIBRARY#include <xtend/mem.h> -lxtend SYNOPSISvoid xt_free_strings(char **list) ARGUMENTSlist A dynamically allocated char ** array DESCRIPTIONxt_free_strings(3) frees all memory for an argv-style pointer array of strings, such as those allocated by xt_inhale_strings(3). The pointer array itself and each string it points to must have been dynamically allocated with malloc(3), strdup(3), or similar. EXAMPLESFILE *instream; char **strings; ssize_t string_count; string_count = xt_inhale_strings(instream, &strings); xt_free_strings(strings); SEE ALSOxt_inhale_strings(3)
|