map.h

changeset 75
725a7187c6ff
parent 62
aae5facf9fc5
equal deleted inserted replaced
74:60cb620a0341 75:725a7187c6ff
19 19
20 /* Return the index of str in map or -1 if not found. */ 20 /* Return the index of str in map or -1 if not found. */
21 extern int stringintmap_ndx(const StringIntMap *map, const char *str); 21 extern int stringintmap_ndx(const StringIntMap *map, const char *str);
22 extern int stringintmap_value(const StringIntMap *map, const char *str, 22 extern int stringintmap_value(const StringIntMap *map, const char *str,
23 int dflt); 23 int dflt);
24 extern const char *stringintmap_key(const StringIntMap *map,
25 int value, const char *dflt);
24 26
25 #endif /* LIBTU_MAP_H */ 27 #endif /* LIBTU_MAP_H */

mercurial