c fgets not waiting for input -


I have 2 fgets in my code and not waiting for input . .
This is an example of the first fgets ...

  printf ("enter path:"); If (FATS (diapth, buffs, stdi) == faucet) {mirror ("fats die path"); Close (sockd); }   

And, as I've written earlier, next phats are not waiting for my input :( First fgets I have 2 scanf ( "% Ms", & amp; string); (If this could be the problem).

I think scanf is not read in line breaks. You can try reading it first with scanf () after an additional fgets.

Comments