I need to output the contents of a struct variable (which internally
has a bunch of ints, strings, other structs, etc) onto the screen
(then ultimately out the com port). I don't mind a raw binary hex
dump of the entire memory space that the variable occupies. I can
then parse it on the other end.
Whats the best way to do this? I can do a sizeof the struct variable
and for-loop to print a hex character for every byte until all the
memory that the variable occupies is cycled through, but I'm thinking
theres gotta be a cleaner approach, no?