|
|
|
|
|
by msarnoff
3224 days ago
|
|
"The language doesn't come with [a hash table implementation] included" The standard library does come with a half-baked hash table implementation[1] (hcreate/hdestroy/hsearch) that only allows creation of _one_ global hash table. GNU libc[2] adds hcreate_r/hdestroy_r/hsearch_r that allows multiple tables to be created. The APIs are strange and antiquated. On the other hand, the hash table implementation described in the article presents a much nicer interface. [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/hcr... [2] http://man7.org/linux/man-pages/man3/hsearch.3.html |
|