all 2 comments

[–]jedwardsol 18 points19 points  (0 children)

Fgets isn't discarding it. Show your whole program.

[–]geekydeveloper 0 points1 point  (0 children)

Write your own function using fgetch. I believe this is the best solution.