Is this a bug, or am I just using scanf wrong? I'm trying to
make scanf read a line that's ended with newline.
char buffer[100]; /* Line won't be over 80, but so what */
scanf ("%[^\n]%*c",buffer);
If it reads an empty line, buffer isn't changed at all! It should
make buffer the null string! Right?
Steve Boswell
whatis at ucsd.edu