How does one construct and access a set of key-value pairs in C? To use a silly simple example, let\'s say I want to create a table which translates between an integer and i
You could consider hash implementation in C language to achieve this.
For basics of hash refer to Wikipedia.
Refer to this question for more details and links.
This link gives good overview and implementation details.