ZEDA
1.6.18
|
Go to the source code of this file.
Data Structures | |
struct | __zStrListCell |
struct | __zStrList |
Macros | |
#define | zStrListPrint(l) zStrListFPrint( stdout, (l) ) |
#define | zStrAddrListDestroy(l) zListDestroy( zStrAddrListCell, l ) |
destroy a list of addresses of strings. More... | |
#define | zStrAddrListGetPtr zStrListGetPtr |
get pointers to strings of a list. More... | |
#define | zStrAddrListFPrint zStrListFPrint |
print a list of strings to a file. More... | |
#define | zStrAddrListPrint zStrListPrint |
Typedefs | |
typedef struct __zStrListCell | zStrListCell |
typedef struct __zStrList | zStrList |
typedef zStrList | zStrAddrList |
list of addresses of strings. More... | |
typedef zStrListCell | zStrAddrListCell |
Functions | |
zStrListCell * | zStrListAdd (zStrList *list, char *str) |
add a string to the head of a list of strings. More... | |
void | zStrListCellFree (zStrListCell *cell) |
free a cell of a list of strings. More... | |
void | zStrListDestroy (zStrList *list) |
destroy a list of strings. More... | |
void | zStrListGetPtr (zStrList *strlist, int n,...) |
get pointers to strings of a list. More... | |
zStrListCell * | zStrListFind (zStrList *list, char *str) |
find a string in a list of strings. More... | |
zStrListCell * | zStrListFindAndAdd (zStrList *list, char *str) |
find a string in a list or strings, and if not found, add it to the head of the list. More... | |
void | zStrListFPrint (FILE *fp, zStrList *list) |
print a list of strings to a file. More... | |
zStrAddrListCell * | zStrAddrListAdd (zStrAddrList *list, char *str) |
add an address of a string to a list from the tail. More... | |
#define zStrListPrint | ( | l | ) | zStrListFPrint( stdout, (l) ) |
#define zStrAddrListDestroy | ( | l | ) | zListDestroy( zStrAddrListCell, l ) |
destroy a list of addresses of strings.
#define zStrAddrListGetPtr zStrListGetPtr |
get pointers to strings of a list.
#define zStrAddrListFPrint zStrListFPrint |
print a list of strings to a file.
#define zStrAddrListPrint zStrListPrint |
typedef struct __zStrListCell zStrListCell |
typedef struct __zStrList zStrList |
typedef zStrList zStrAddrList |
list of addresses of strings.
Each cell of a list of this class only stores addresses of the specified strings that is allocated elsewhere in the memory space.
typedef zStrListCell zStrAddrListCell |
zStrListCell* zStrListAdd | ( | zStrList * | list, |
char * | str | ||
) |
add a string to the head of a list of strings.
void zStrListCellFree | ( | zStrListCell * | cell | ) |
free a cell of a list of strings.
void zStrListDestroy | ( | zStrList * | list | ) |
destroy a list of strings.
void zStrListGetPtr | ( | zStrList * | strlist, |
int | n, | ||
... | |||
) |
get pointers to strings of a list.
zStrListCell* zStrListFind | ( | zStrList * | list, |
char * | str | ||
) |
find a string in a list of strings.
zStrListCell* zStrListFindAndAdd | ( | zStrList * | list, |
char * | str | ||
) |
find a string in a list or strings, and if not found, add it to the head of the list.
void zStrListFPrint | ( | FILE * | fp, |
zStrList * | list | ||
) |
print a list of strings to a file.
zStrAddrListCell* zStrAddrListAdd | ( | zStrAddrList * | list, |
char * | str | ||
) |
add an address of a string to a list from the tail.