diff options
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -73,6 +73,11 @@ void *map_closest(const Map *map, const char *prefix) return m->v; } +bool map_contains(const Map *map, const char *prefix) +{ + return !map_empty(map_prefix(map, prefix)); +} + bool map_put(Map *map, const char *k, const void *value) { size_t len = strlen(k); |
