This may sound silly, but why do we check for NULL when calling fgets.
if ( fgets( string_in, BUFSIZ, stdin ) == NULL ) {
//what goes here
}
I couldnt find an answer in any of my text books or on google.
Also if more characters than BUFSIZ allows is entered into the console, do they remain in the buffer until next time we read from it?
Thanks in advance.