Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!oliveb!Ozona!chase From: chase@Ozona.orc.olivetti.com (David Chase) Newsgroups: comp.lang.c Subject: Re: retiring gets(3) Summary: and scanf too? Message-ID: <32301@oliveb.olivetti.com> Date: 9 Nov 88 19:07:19 GMT References: <1988Nov8.054845.23998@utstat.uucp> Sender: news@oliveb.olivetti.com Reply-To: chase@Ozona.UUCP (David Chase) Organization: Olivetti Research Center, Menlo Park, CA Lines: 12 You should also consider retiring certain features of 'scanf' and 'fscanf'. A call along the lines of scanf("%s", junk); is perfectly able to scribble past the end of 'junk'. I'm not sure if there are other holes like this built in to the standard i/o library; it wouldn't hurt to check. (I've never been a real fan of 'scanf', but it does seem marginally more useful and harder to replace than 'gets'). David