Mail Archives: djgpp/1997/10/24/05:32:48
On 20 Oct 1997 18:01:27 GMT in comp.os.msdos.djgpp Br5an (br5an AT aol DOT com)
wrote:
: As per previous responce scanf can leave some unwanted codes in the input
: buffer. (010 is a line-feed).
No flame intended (it wasn't so long ago that I didn't know this...), but
be careful ;). 010 written in a C program has the (decimal) value 8.
'\010' is character number 8, or backspace, not linefeed. I think the
original poster didn't understand this, though, and meant the returned
character was number 10.
--
Regards,
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -