9 #ifndef __ZEDA_STRLIST_H__ 10 #define __ZEDA_STRLIST_H__ 45 #define zStrListPrint(l) zStrListFPrint( stdout, (l) ) 59 #define zStrAddrListDestroy(l) zListDestroy( zStrAddrListCell, l ) 62 #define zStrAddrListGetPtr zStrListGetPtr 65 #define zStrAddrListFPrint zStrListFPrint 66 #define zStrAddrListPrint zStrListPrint void zStrListDestroy(zStrList *list)
destroy a list of strings.
void zStrListCellFree(zStrListCell *cell)
free a cell of a list of strings.
#define __END_DECLS
Definition: zeda_defs.h:30
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.
FILE * fp
Definition: zeda_stream.h:36
zStrAddrListCell * zStrAddrListAdd(zStrAddrList *list, char *str)
add an address of a string to a list from the tail.
#define __BEGIN_DECLS
Definition: zeda_defs.h:26
#define zListClass(list_t, cell_t, data_t)
generate bidirectional ring list class.
Definition: zeda_list.h:48
zStrList zStrAddrList
list of addresses of strings.
Definition: zeda_strlist.h:52
Definition: zeda_strlist.h:23
zStrListCell zStrAddrListCell
Definition: zeda_strlist.h:53
#define __EXPORT
Definition: zeda_compat.h:32
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.
zStrListCell * zStrListAdd(zStrList *list, char *str)
add a string to the head of a list of strings.
Definition: zeda_strlist.h:23