Re: Question in C



On Fri, 20 Feb 2004 13:52:55 -0500
Tristan Van Berkom <vantr touchtunes com> wrote:

Harring Figueiredo wrote:
[snip]
 I think the wording is confusing a lot of people.

I agree, so I am loath to add to it, but never-the-less,

if you are doing "charachter array conversions" to integer
values, I would recommend you at least be aware of the
function set strtol,strtoul,strtoll,strtoull from stdlib.h

as they are slightly more powerfull than good old atoi,atol...


Ok course I agree... The original wording said: 'char' not 'char array',
and said (36) as value, not "36". Again, of course, if it's a char array,
use - as suggested - either atoi, or strtol (even though the last produces
a long integer).

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]