Commit Graph

4 Commits

Author SHA1 Message Date
Paul Eggert
784a497c40 (strtoll): Depend on HAVE_LONG_LONG, not HAVE_UNSIGNED_LONG_LONG. 2002-07-09 17:40:33 +00:00
Paul Eggert
f596d1be2e (HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
(strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
to work around bug in IBM C compiler.
2001-09-06 19:47:45 +00:00
Paul Eggert
01c35d7225 Fix copyright notice.
(UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
(verify): New macro.
(INT): Renamed from uintmax_t.
(strtoumax, strtoull, strtoul): Remove.
(strtoimax, strtol, strtoll): New macros.
(strtoimax): Renamed from strtoumax.  Interchange signed with unsigned.
Verify sizes at compile-time, not at run-time.
Prefer strtol to strtoll if both work.
(main): Remove.
2001-08-29 06:36:20 +00:00
Paul Eggert
c74b3c3fb7 Initial revision 2001-08-26 06:58:10 +00:00