title: error: expected ')' before '*' token
body: <p>I have this include file (<code>memory .h</code>)</p>
  
  <pre><code>#ifndef MEMORY_H
  #define MEMORY_H
  
  #ifdef  __cplusplus
  extern "C" {
  #endif
  
      typedef struct mmemory {
          int* cells;
          int* current_cell;
          int cells_number;
      } memory;
  
      void memory_init(memory* mymemory, int size);
      void step_left(memory* mymemory, int steps);
      void step_right(memory* mymemory, int steps);
      void cell_inc(memory* mymemory, int quantity);
      void print_cell(memory* mymemory);
      void get_char(memory* mymemory);
  
  
  #ifdef  __cplusplus
  }
  #endif
  
  #endif  /* MEMORY_H */
  </code></pre>
  
  <p>And this implementation file (<code>memory.c</code>)</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include "memory.h"
  
  void
  memory_init (memory* mymemory, int size)
  {
      mymemory-&gt;cells = (int*) malloc (sizeof (int) * size);
      mymemory-&gt;cells_number = size;
      mymemory-&gt;current_cell = (int*) ((mymemory-&gt;cells_number / 2) * sizeof (int));
  }
  ... //other function definitions follow
  </code></pre>
  
  <p>When I try to compile <code>memory.c</code> I get this error for each and every function definition</p>
  
  <blockquote>
    <p>src/memory.c:5: error: expected ')' before '*' token</p>
  </blockquote>
  
  <p>where line 5 is the function definition for <code>memory_init()</code></p>
  
  <p>Can someone please tell me why I'm getting this error?</p>