Struct PntosStringArray

Struct Documentation

struct PntosStringArray

An owned array of strings (see PntosManagedMemory for more information).

Invariants:

  • Each member of the data array must be a pointer to an array of allocated memory ending in a \0 character

  • The length of data must be equal to sizeof(char*)*num_strings

Public Members

PntosManagedMemory *memory
char **data

An array of num_strings pointers to \0 terminated C strings.

size_t num_strings

Number of \0 terminated C strings in data. For example, data[num_strings-1] points to the last C string in this structure.