2 ms·
hcreate_r() can be used on some of the BSDs as well, but of course they're not 100% compatible with GNU. I've implemented a platform-independent POSIX hsearch a
by ludocode 6y ago
hcreate_r() can be used on some of the BSDs as well, but of course they're not 100% compatible with GNU. I've implemented a platform-independent POSIX hsearch as a wrapper to a templated hashtable in Pottery:
https://github.com/ludocode/pottery/tree/master/examples/pottery/hsearch https://github.com/ludocode/pottery/tree/master/examples/pot...
Be warned, hsearch is terrible. You should probably only use this if you have some existing code that depends on hsearch and you want to make it portable.