HN Top New Show Ask Jobs

settings

Theme

Hand Mode

Feed

Comment by 1718627440

Comment by 1718627440 5 days ago

0 replies

View on Hacker News

C (actually POSIX) has a hashmap implementation: https://man7.org/linux/man-pages/man3/hsearch.3.html

What it doesn't have is a hashmap type, but in C types are cheap and are created on an ad-hoc basis. As long as it corresponds to the correct interface, you can declare the type anyway you like.