Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

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
       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)

							    xt_free_strings(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_free_strings&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help