<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

  <title>RCST7 - C256</title>
  <link rel="stylesheet" type="text/css" href="errors.css">
</head>

<body>
  <h1><a name="RCST7-C256" id="RCST7-C256"></a>RCST7 ERROR C256</h1>
  <!-- Note that the header should be non scrollable, so that it always
     remains on top even if the user scrolls down a loooong text. -->
  <!-- This is the Error title -->

  <h2>Improper use of "typedef"</h2>

  <p>You attempted to use a type instead of a type name while using a
  structure.</p>

  <h2>Example</h2>
  <pre>
typedef struct
{
   int T1;
} mystruct;

int i = mystruct.T1;
</pre>

  <h2>Resolution</h2>

  <p>Use a proper Standard C construct.</p>

  <p>If you just need to get the offset of a struct member, please use the
  offsetof() macro available from the &lt;stddef.h&gt; header file.</p>
</body>
</html>
