Hacker News new | ask | show | jobs
by to3m 3223 days ago
OK... so how did junk like this ever get into enough implementations that people were forced to include it in the standard? ;)
1 comments

tsearch/hsearch/lsearch have been around for at least 30 years. My guess is that they've been around for a lot longer.

Why not have these anyway? Otherwise people will make their own (probably buggy) equivalents.

I'm actually surprised that people aren't aware of them.

This is specifically about hcreate/hsearch, which are utterly useless, since you only get one hash table at a time. The reason you don't want crap like this is just that: it's crap.

The _r versions look perfectly sensible.