From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Scanf function Date: 22 Oct 1997 18:56:38 GMT Organization: Oxford University, England Lines: 16 Message-ID: <62li96$o7s$1@news.ox.ac.uk> References: <62fp85$nq4$1 AT power DOT ci DOT uv DOT es> <19971020180100 DOT OAA25465 AT ladder01 DOT news DOT aol DOT com> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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