I\'m trying to convert a struct to a char array to send over the network. However, I get some weird output from the char array when I do.
#include
char is a signed type; so with two's complement, 0x80 is -128 for an 8-bit integer (i.e. a byte)