4 * Copyright (c) Tuomo Valkonen 1999-2002.
6 * You may distribute and modify this library under the terms of either
7 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
13 typedef struct _StringIntMap{
18 #define END_STRINGINTMAP {NULL, 0}
20 /* Return the index of str in map or -1 if not found. */
21 extern int stringintmap_ndx(const StringIntMap *map, const char *str);
22 extern int stringintmap_value(const StringIntMap *map, const char *str,
24 extern const char *stringintmap_key(const StringIntMap *map,
25 int value, const char *dflt);
27 #endif /* LIBTU_MAP_H */