[opensource] Re: uint64_t Question
Karen Manukyan
manukyan at cse.ohio-state.edu
Mon May 21 01:06:30 EDT 2007
Hi Alex,
I would suggest that you don't use atoi, strtol, etc at all. There is
better way to do conversions:
http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.2
They give an example for double, but you can use any other type instead
(see next example on the same page).
-Karen
P.S.
C++ Rocks! :)
Alexander Moore wrote:
> Does anybody know if there is an 'atoi' for uint64_t ? I know there is
> a strtol which will convert a string to a long int (32 bits), but is
> there a function that will convert a string to a long long int
> (uint64_t, 64 bits) ?
>
> --Alex
More information about the Opensource
mailing list