I just stumbled on this topic while looking for an answer to this question.
Essentially, what I'm asking is the opposite of what's done in that thread. Instead of getting an enum's value by it's name, I'd like to get it's name by it's value. How is this done?
enum {white, gray = 1, grey =1, black};. They can be built from named enums: enum {user = 4, group = 2; over = 1;}` These can be manipulated:enum all = user | group | other;How would you convert 7 to"all"here> - Eric Jablow