title: Pointer in const C struct
body: <p>Assuming that the following structures exist...</p>
  
  <pre><code>typedef struct MyFirstStruct
  {
      uint8_t someContent;
  }
  typedef struct MySecondStruct
  {
      MyFirstStruct* firstStructs;
      uint8_t firstStructCount;
  }
  </code></pre>
  
  <p>... and a function gets the following Parameter.</p>
  
  <pre><code>const MySecondStruct* const secondStruct
  </code></pre>
  
  <p>Is it allowed to change any value?</p>
  
  <p>I am sure that this is not correct:
  <code>secondStruct-&gt;firstStructCount++</code>.</p>
  
  <p>But neither the Compiler nor PC-Lint complains about <code>secondStruct-&gt;firstStructs-&gt;someContent++</code>.</p>
  
  <p>Is it allowed to do Change <code>someContent</code> because <code>firstStructs</code> is not <code>const</code> or is the behavior undefined?</p>
  
  <p>Thanks!</p>