Code:
   printf("Is that okay? (y/n): ");
   fflush(stdin);
When you do a printf without a \n character at the end of your string, you should flush the output.

You probably misinterpreted the advice given to you

Code:
   printf("Is that okay? (y/n): ");
   fflush(stdout);
Also, I think that a 1000 char buffer with fgets is a bit much for a y/n answer. I personally would have used getchar().