title: MD5 hashing using union for struct types
body: <p>I was wondering if using union command to do a MD5 hash is recommended?
  the reason I want to use union is because I want do hash a structure like the following. </p>
  
  <pre><code>struct Body{
      int commandType;
      char data[MaxLine];
  };
  
  union UBody{
      Body    body;
      char    str[MaxLine + 4];
  }
  </code></pre>
  
  <p>since <code>#include &lt;openssl/md5.h&gt;</code> requires char type this is the only thing I could think of. please let me know.</p>