This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
How does one use ULONG_LONG_MAX or ULLONG_MAX in newlib function?
- To: <newlib at sources dot redhat dot com>
- Subject: How does one use ULONG_LONG_MAX or ULLONG_MAX in newlib function?
- From: "John R. Moore" <jmoore at redhat dot com>
- Date: Wed, 11 Jul 2001 14:46:48 -0700 (PDT)
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