title: c structure in shared memory
body: <p>I have a structure like </p>
  
  <pre><code>struct board{
     char name;
     int values[37];
  }board
  </code></pre>
  
  <p>Imagine a game where there are several players playing at a single table and they all make different bets on different positions of the values array.The name of the board is unique and a player enters a game specifying the board name. If 2 or more players enter the same board name they all join the same game.</p>
  
  <p>I need to put this structure into shared memory and access/modify the contents of "values"<br>
  from different processes at the same time (semaphores are not a problem). I managed to copy the structure in a piece of shared memory but I don't how to access the name to see if a board already exists and things like that. </p>
  
  <p>This is for a school project and I'm a little desperate.... pleeease help and thanks. By the way, the shared memory I want references to the POSIX os</p>