Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!uflorida!ukma!tut.cis.ohio-state.edu!osu-cis!att!ihlpm!snafu From: snafu@ihlpm.ATT.COM (00704a-Wallis) Newsgroups: comp.lang.c Subject: Re: retiring gets(3) Message-ID: <2566@ihlpm.ATT.COM> Date: 10 Nov 88 18:38:06 GMT References: <1988Nov8.054845.23998@utstat.uucp> <8841@smoke.BRL.MIL> Organization: AT&T Network Systems, Inc., Naperville Il. Lines: 24 In article <8841@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn ) writes: ... text deleted ... > By the way, have you removed scanf() from your C library as well? Or > sprintf()? Or strcpy()? They can be misused in the same way as gets(). > Let us know how happy your customers are once ALL such routines are gone. > .... Actually, I don't understand the argument that gets() should be removed because it can overrun the buffer. What's to prevent the following (and how is it different from gets?): char some_string[10]; fgets( some_string, 2147483647, stdin ); -- Dave Wallis AT&T Network Systems Lisle, IL 60532 att!ihlpm!snafu