How can I cast a C struct to a char array??
If i have something like
typedef struct
{
char ID[3];
short length;
char msg[14];
} message;
How can I typecast it to a char array so that I won't have the problem of padded bytes in using the struct message...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.