Path: utzoo!attcan!uunet!husc6!bbn!bbn.com!mesard From: mesard@bbn.com (Wayne Mesard) Newsgroups: comp.lang.c Subject: Re: retiring gets(3) Message-ID: <32197@bbn.COM> Date: 12 Nov 88 18:47:44 GMT References: <9054@ihlpb.ATT.COM> Sender: news@bbn.COM Lines: 18 From article <9054@ihlpb.ATT.COM>, by gregg@ihlpb.ATT.COM (Wonderly): > The biggest > concern that most people have about moving from gets to fgets is the > added hassle of doing a > > if ((t = strchr (buf, '\n')) != NULL) > *t = 0; > > This seems to be a lot of work when you may be processing thousands of > lines of code. Or have this new function return a pointer to the _last_ char read, instead of redundantly returning its first param. This would require exactly no extra work on the part of the library routine or the client program. -- void *Wayne_Mesard(); MESARD@BBN.COM BBN, Cambridge, MA