1 2 3 4 5 6 7 8 9 10 11 12
struct mapkey { uint64_t hash; const char *str; size_t len; }; void mapkey(struct mapkey *, const char *, size_t); struct map *mkmap(size_t); void delmap(struct map *, void(void *)); void **mapput(struct map *, struct mapkey *); void *mapget(struct map *, struct mapkey *);