Reputation: 58
does it return anything? is EOF nothing but -1 ? How does fgets detect an EOF ? Can somebody please elaborate also on the difference between gets and fgets()
Upvotes: 2
Views: 111
Reputation: 587
It returns NULL on encountering EOF
Upvotes: 1