-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cilibrar
committed
Aug 21, 2004
1 parent
f44ec6e
commit a34781c
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include <stringtable.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef __STRINGTABLE_H | ||
#define __STRINGTABLE_H | ||
|
||
#include <stdio.h> | ||
|
||
struct StringTable; | ||
|
||
#define ERR_NOSTRING 1 | ||
#define ERR_INVALID 2 | ||
#define ERR_TABLEFULL 3 | ||
|
||
typedef void (*StringTableIterator) | ||
(struct StringTable *st, const char *key, void *val, void *udata); | ||
struct StringTable *newStringTable(void); | ||
int putString(struct StringTable *st, const char *key, void *val); | ||
int delString(struct StringTable *st, const char *key); | ||
void *findString(struct StringTable *st, const char *key); | ||
void allStrings(struct StringTable *st, StringTableIterator sti, void *udata); | ||
void freeStringTable(struct StringTable *st); | ||
|
||
#endif |