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