Re: atoi return
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Sun, 12 Oct 2008 12:07:40 +0000
Anand Hariharan said:
On Sat, 11 Oct 2008 06:58:49 +0000, Richard Heathfield
<rjh@xxxxxxxxxxxxxxx> wrote:
CBFalconer said:
Bill Cunningham wrote:
I see. Must be a left over dinosaur like gets().
No. gets() is just unsafe regardless. atoi() can be used safely, but
why bother when you have strtol available.
In other words, it's a left over dinosaur. And so is gets(). Therefore,
it's a left over dinosaur like gets(). Which is what he said.
gets has been deprecated. It's got enough bad rep that compilers warn
about it. It's usage is likely to disappear. In that sense it is a
dinosaur.
atoi, OTOH, is as much a 'left over dinosaur' like say scanf.
Yes. They all are. Forgive me, but I don't see your point.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- References:
- atoi return
- From: Bill Cunningham
- Re: atoi return
- From: Keith Thompson
- Re: atoi return
- From: Bill Cunningham
- Re: atoi return
- From: Keith Thompson
- Re: atoi return
- From: Bill Cunningham
- Re: atoi return
- From: CBFalconer
- Re: atoi return
- From: Richard Heathfield
- Re: atoi return
- From: Anand Hariharan
- atoi return
- Prev by Date: WG14 Post Santa Clara mailing available
- Next by Date: Re: atoi return
- Previous by thread: Re: atoi return
- Next by thread: Re: atoi return
- Index(es):
Relevant Pages
|