linux-pages.com
... arcane linux knowledge collected over the eons, bit by bit ...
How can we map the enum values to strings in the C programing language?
Often times you need to display a C enum as a string, most often when debugging or handling error conditions.
Typical techiques involve usually: a) defining an array of strings (the strings being the enum names of course, and the string […]