In Python it's easy:
x = {}
x['USD'] = "Dollars"
x['CLP'] = "Pesos"
or
y = {'lat': 23.678900, 'lng': 121.451928, 'name': "Sin City"}
I think most of these kinds of problems have been solved, so where can I get information about dictionaries in C? I do not want to reinvent the wheel.
How do I implement a dictionary in C?
glibc provides hcreate, hsearch, and hdestroy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With