I\'m currently learning c. I\'m writing a web server as an exercise. Now i have to store the status codes and reason phrases.
What is the best way to store those
Maybe you can create a struct with the K\V in it.
Like so:
struct key_value { int key; char* value; }; struct key_value kv; kv.key = 1; kv.value = "foo";