title: Pointer type to shared memory POSIX
body: <p>My original question is <a href="https://stackoverflow.com/questions/8261294/request-for-simple-examples-demonstrating-how-to-write-object-into-shared-memory">here</a>, which no one seems interested in.</p>
  
  <p>I've decided to break that tedious question down and to ask the following:</p>
  
  <pre><code>char* shared_memory;
  shared_memory = (char*) shmat (segment_id, 0, 0);
  </code></pre>
  
  <p>Do we typically get the pointer to the shared memory like the example above? In other words, should we always cast the pointer to <code>char*</code> or whatever better fits our needs?</p>