title: C - getchar() in a loop?
body: <p>How I can use getchar() in a loop? Now I have...</p>
  
  <pre><code>for (p=0; p&lt;n_players; p++) {
      ...
      fflush(stdin);
      getchar();
  }
  </code></pre>
  
  <p>But it doesn't work... if n_players is 3, it execute getchar 2 times only at the end...</p>
  
  <pre><code>for (p=0; p&lt;n_players; p++) {
      blank_start();
      ascii_art_title();
      printf("%s, tocca a te...\n",player_info[p].player_name);
      srand(time(NULL));
      random_speed = MIN_WHEEL_SPEED + rand()%MAX_WHEEL_SPEED;
      move_wheel_pointer(random_speed, &amp;pointer);
      if (player_points(&amp;wheel[pointer]) == 0){
          player_info[p].points = wheel[pointer];
      }
      else {
          player_info[p].points = 0;
      }
      printf("\nGuadagni %d punti...\n",player_info[p].points);
      if (p&lt;(n_players-1)) {
          printf("\nOra tocca a te, giocatore %d\n",(p+2));
      }
      fflush(stdin);
      getchar();
  }
  </code></pre>
  
  <p>getchar jumps the first loop</p>