title: Passing 2 structures as parameters to pthread in C
body: <p>Can I pass two structures as parameters to a pthread in a C program. I need to do something like this:</p>
  
  <pre><code>void *funtion1(void *pass_arg, void *pass_arg1)
  {
      struct thread_arg *con = pass_arg;
      struct thread_arg1 *con = pass_arg1;
      //necessary code
  }
  int main()
  {
  pthread_t threaad;
  //necessary code
  while(1)
  {
      th1 = pthread_create(&amp;threaad, NULL, function1, (void *)&amp;pass_arg, (void*)&amp;pass_arg);
  //necessary codes
  }
  pthread_exit(NULL);
  return 1;
  }
  </code></pre>
  
  <p>I mean is there any way I can pass two structures into the same function while using pthread? Operating Platform: Linux.</p>