Re: gets() is dead



Tak-Shing Chan wrote:
On Sun, 20 May 2007, Ian Collins wrote:

Charles Richmond wrote:

You do *not* have to "gets()" nasty. I sometimes use bubble sort
too, when I think it is appropriate. I am surprise you would
use so much bandwidth just to disparage me. How about telling
me something I don't know about "gets()" that would convince me
*not* to use it for games or my own "quick and dirty" use.

There isn't any good reason to use it.

There's one: simplicity. You don't need to handle the
newlines yourself.

Discarding the last character in a buffer read with fgets() is hardly a
burden.

--
Ian Collins.
.



Relevant Pages

  • Re: gets() is dead
    ... I am surprise you would ... use so much bandwidth just to disparage me. ... The programmer needs ...
    (comp.lang.c)
  • Re: gets() is dead
    ... On Sun, 20 May 2007, Ian Collins wrote: ... I am surprise you would ... use so much bandwidth just to disparage me. ...
    (comp.lang.c)
  • Re: gets() is dead
    ... use so much bandwidth just to disparage me. ... Believe it or not, that's not my intent. ...
    (comp.lang.c)
  • Multiple web sites bandwidth utilization
    ... Last week we´ve been surprised by a single web site consuming almost 17 Mbps ... of our 60Mbps internet bandwidth. ... To avoid this kind of surprise, we´ve enabled bandwidth trottling for every ... individual web site bandwidth utilization. ...
    (microsoft.public.windows.server.general)
  • Multiple web sites bandwidth utilization
    ... Last week we´ve been surprised by a single web site consuming almost 17 Mbps ... of our 60Mbps internet bandwidth. ... To avoid this kind of surprise, we´ve enabled bandwidth trottling for every ... individual web site bandwidth utilization. ...
    (microsoft.public.windows.server.networking)