gcc 4.4.2 c89
I have the following listing:
enum drop_options_e { drop_ssm, drop_snm, drop_ssb };
I'm just wondering what is the best way to get the value of a string representation from an enumeration.
So, instead of returning a value of 0 for drop_ssm, I could get "drop_ssm" instead.
Thanks so much for any advice,
source share