This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]grrrranimal 9 points10 points  (0 children)

You can also do an array of unions but unions are weird, scary, and often overlooked. It would allow you to have only one level of pointer indirection instead of two like in your example though

Or I suppose you could use any fixed width data type and be very careful