That changes the meaning of the code, completely, Babkockdood.
Type: Posts; User: grumpy
That changes the meaning of the code, completely, Babkockdood.
scanf() will never set data to be EOF. You need read the documentation about scanf() carefully (scanf() does not necessarily return EOF if an error occurs).