On Thu, Nov 3, 2011 at 8:00 PM, Christian Inci chris.pcguy.inci@gmail.com wrote:
But my C is a bit rusty, so I don't know a clean way to enumerating an enum.
You cannot enumerate an enum. An enum is just a way to define a bunch of related constants. If you don't set explicit values, they will get consecutive values (first one being 0); otherwise, the range for the constants might not be sequential.
You can use a for loop starting from first enum value to last enum value, or you can put all the enum values in an array and loop over the array.
Octavian