Re: how to pass float value from argv?
- From: Sunny <sunnysomchok@xxxxxxxxx>
- Date: Sat, 9 May 2009 22:25:45 -0700 (PDT)
On May 10, 5:34 am, Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:
Sunny said:
<snip>
It would be better to try not to use atoi()/atof().
Agreed.
If you read
the C manual. It clearly says that both atoi() and atof() has been
deprecated by strtol() and strtod()
Which C manual? If you mean the Standard, C&V please. If you mean
the man pages, mine don't say any such thing.
--
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
I was referring to the man pages on my MacOS. However I checked the
man pages on Ubuntu and it doesn't say so. The man pages on Ubuntu
only says that both atoi() and atof() are the same as strtol() and
strtof(). The only difference is that atoi()/atof() does not detect
errors.
Sorry for the confusion.
Best,
Sunny
.
- Follow-Ups:
- Re: how to pass float value from argv?
- From: Malcolm McLean
- Re: how to pass float value from argv?
- References:
- how to pass float value from argv?
- From: miloody
- Re: how to pass float value from argv?
- From: Willem
- Re: how to pass float value from argv?
- From: Sunny
- Re: how to pass float value from argv?
- From: Richard Heathfield
- how to pass float value from argv?
- Prev by Date: Re: Float comparison
- Next by Date: Re: how to pass float value from argv?
- Previous by thread: Re: how to pass float value from argv?
- Next by thread: Re: how to pass float value from argv?
- Index(es):
Relevant Pages
|