ZEDA  1.6.18
zeda_strlist.h
Go to the documentation of this file.
1 /* ZEDA - Elementary Data and Algorithms
2  * Copyright (C) 1998 Tomomichi Sugihara (Zhidao)
3  */
9 #ifndef __ZEDA_STRLIST_H__
10 #define __ZEDA_STRLIST_H__
11 
12 #include <zeda/zeda_list.h>
13 #include <zeda/zeda_string.h>
14 
16 
17 #ifndef __KERNEL__
18 
24 
27 
30 
33 
35 __EXPORT void zStrListGetPtr(zStrList *strlist, int n, ...);
36 
39 
42 
44 __EXPORT void zStrListFPrint(FILE *fp, zStrList *list);
45 #define zStrListPrint(l) zStrListFPrint( stdout, (l) )
46 
54 
57 
59 #define zStrAddrListDestroy(l) zListDestroy( zStrAddrListCell, l )
60 
62 #define zStrAddrListGetPtr zStrListGetPtr
63 
65 #define zStrAddrListFPrint zStrListFPrint
66 #define zStrAddrListPrint zStrListPrint
67 
68 #endif /* __KERNEL__ */
69 
71 
72 #endif /* __ZEDA_STRLIST_H__ */
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
list operation.
#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
string manipulations.
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