xt_free_strings(3)

LIBRARY
#include <xtend/mem.h>
-lxtend

SYNOPSIS

void    xt_free_strings(char **list)

ARGUMENTS
list    A dynamically allocated char ** array

DESCRIPTION
xt_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.

EXAMPLES
FILE    *instream;
char    **strings;
ssize_t string_count;
string_count = xt_inhale_strings(instream, &strings);
xt_free_strings(strings);

SEE ALSO
xt_inhale_strings(3)