This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How does one use ULONG_LONG_MAX or ULLONG_MAX in newlib function?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]