How does one use ULONG_LONG_MAX or ULLONG_MAX in newlib function?

John R. Moore jmoore@redhat.com
Wed Jul 11 14:46:00 GMT 2001


Help, this should be so simple.

I'm trying to build an strtoull.c (exactly like strtoul.c but
using "unsigned long long" instead of "unsigned long" and
ULONG_LONG_MAX or ULLONG_MAX instead of ULONG_MAX.

I could just cheat and use

#define ULONG_LONG_MAX   18446744073709551615ULL

inside my strtoull.c, but this doesn't seem to me to be kosher.

Anybody got suggestions?  Do I need to define something special?

John



More information about the Newlib mailing list