title: Problem with struct when I split the functions from main
body: <p>I have a struct in my <code>main</code> let's say:</p>
  
  <pre><code>struct node
  {
      char name[N];
      int num;
      char **group;
      int groupsize;
      struct node * next;
  };
  </code></pre>
  
  <p>and I have my functions to other .c and .h files call myfuncs.c.h</p>
  
  <p>myfuncs.h</p>
  
  <pre><code>void create_node(struct node **, struct node **, int, int, char **, int);
  void display(struct node *head);
  void start_joseph(struct node **, int, int);
  </code></pre>
  
  <p>and myfuncs.c</p>
  
  <pre><code>void create_node(struct node **, struct node **, int, int, char **, int);
  {
    do something;
  }
  
  void display(struct node *head);
  {
    do something;
  }
  
  void start_joseph(struct node **, int, int);
  {
    do something;
  }
  </code></pre>
  
  <p>but I get this error</p>
  
  <pre><code>[Warning] 'struct node' declared inside parameter list
  [Warning] its scope is only this definition or declaration, which is probably not what you want
  </code></pre>
  
  <p>Should I define the struct to the pre-processor or what? </p>