Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.lang.c Subject: Re: What's so bad about scanf anyway??? (really what's bad about gets) Message-ID: <3819@skye.ed.ac.uk> Date: 26 Nov 90 16:02:24 GMT References: <4319@goanna.cs.rmit.oz.au> <1990Nov20.123036.11103@ericsson.se> <3797@skye.ed.ac.uk> <1990Nov22.071319.3222@ericsson.se> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 29 In article <1990Nov22.071319.3222@ericsson.se> epames@eos.ericsson.se writes: >>>>Let represent your end-of-file character on a UNIX system >^D is *NOT* an eof character, it is a command to the tty driver to send >the contents of the input buffer, I thought I had made it quite clear what happens when you type ^D. Are you trying to make a substantial point here, or are you just quibbling about the term "end-of-file character"? When Richard O'Keefe says "end-of-file character" he means "the character you type when you want to cause the program to see an end-of-file condition". Just like "erase character" (a term you used yourself) means "the character you press when you want to erase a character", and "suspend character" means "the character you press when you want to suspend your program". If your point is that the behaviours after newline and after other characters are really the same - ie send the waiting characters, of which there may be a zero or non-zero number - then yes, that's true, but it's normally more useful to distinguish these cases. -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin