I am a little bit confused on how to convert a struct to a char[] in C.
My CDMA modem doesn't support sending variables - it only understands ASCII characters. I need to do the conversion operation.
Let's say that I have an sMSG struct like this:
struct sMSG
{
int a;
int b[];
char c[];
double d;
float f;
};
So, I have to make a string like char str[] = "sMSG_converted_into_ASCII_chars";
I'm wondering if somebody will help me out on this, please.
Thanks in advance.