Hello,
I'm aware that scanf is a bit "nasty" because it often leaves "undigested" characters in the input stream. What about fgets used to input a string from stdin? I tried entering more characters than I had specified in fgets and nothing seemed to remain in the input stream. Is my observation correct?