blob: c6a76a7440ab4ac39bb0aac1340a7f78a41abe12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*@@
@header util_StringList.h
@date Mon May 21 16:58:15 2001
@author Tom Goodale
@desc
Prototypes and data structures for fixed-size lists of unique strings.
@enddesc
@version $Header$
@@*/
#ifndef _UTIL_STRINGLIST_H_
#define _UTIL_STRINGLIST_H_ 1
#ifdef __cplusplus
extern "C"
{
#endif
struct iInternalStringList
{
struct iInternalStringList *next;
char *string;
};
typedef struct
{
int max_size;
int fill;
struct iInternalStringList *list;
struct iInternalStringList *head;
struct iInternalStringList *current;
} uStringList;
uStringList *Util_StringListCreate(int size);
int Util_StringListAdd(uStringList *list, const char *item);
void Util_StringListDestroy(uStringList *list);
const char *Util_StringListNext(uStringList *list, int flag);
#ifdef __cplusplus
}
#endif
#endif /* _UTIL_STRINGLIST_H_ */
|