Re: gets() is dead
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Sun, 20 May 2007 21:35:28 +1200
Tak-Shing Chan wrote:
On Sun, 20 May 2007, Ian Collins wrote:
Charles Richmond wrote:
There isn't any good reason to use it.
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'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.
.
- Follow-Ups:
- Re: gets() is dead
- From: Tak-Shing Chan
- Re: gets() is dead
- References:
- Re: gets() is dead
- From: Charles Richmond
- Re: gets() is dead
- From: Ian Collins
- Re: gets() is dead
- From: Tak-Shing Chan
- Re: gets() is dead
- Prev by Date: Re: The result of ++ is not an lvalue?
- Next by Date: Re: bitwise on float
- Previous by thread: Re: gets() is dead
- Next by thread: Re: gets() is dead
- Index(es):
Relevant Pages
|
|