home | help
xt_free_strings(3)	    Library Functions Manual	      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  ar-
     ray  itself  and  each string it points to must have been dynamically allo-
     cated 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)

							      xt_free_strings(3)

home | help