Strtol and strtoul...
Chris Torek
chris at mimsy.umd.edu
Sun Dec 17 07:08:57 AEST 1989
In article <21305 at mimsy.umd.edu> I wrote:
>strtoul("340282366920938463463374607431768211456", &ptr, 0);
>... *is* too big (unless you have 128 bit `long's) ....
Oops, that should be `greater than 128 bit'. The number in double
quotes there is $2^{128}$ (or $2 sup 128$ for troff folks), which
is just barely too big for a 128 bit unsigned long.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at cs.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list