string_array.h File Reference


Detailed Description

Single Memory Block String Array.

Allows the creation of string array inside a single memory block that can be therefore freed using free(). Pointers in the string array may move during calls to this library.

Go to the source code of this file.

Functions

char ** string_array_new (void)
 Create a new empty string array.
char ** string_array_append (char **oarray, const char *str)
 Append str to the string array.


Function Documentation

char** string_array_new ( void   ) 

Create a new empty string array.

Returns:
New string array.

char** string_array_append ( char **  oarray,
const char *  str 
)

Append str to the string array.

It returns the new array which may have been relocated.

Returns:
The possibly relocated string array.


Generated on 14 May 2015 for cctools by  doxygen 1.4.7