lib/strtoimax.c


Log

Author Commit Date CI Message
Jim Meyering f9c1fe22 2001-09-17T10:24:20 (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.
Jim Meyering 9a3aebb7 2001-08-31T09:37:58 Renamed from strtoxmax.c, removing the old strtoimax.c. Also, make the following further changes to make this file's configuration more similar to that of strtol.c: (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed. (strtoumax, uintmax_t, strtoull, strtol): Remove. (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED. (strtoimax): Renamed from strtoumax. All uses of unsigned values changed to signed values. And make the following changes as well: Fix copyright notice, as 1999 was missing. (verify): New macro. (strtoimax): Check sizes at compile-time, not run-time. Prefer strtol to strtoll if both work. (main): Remove; it was not that useful and was a pain to maintain.
Jim Meyering 82d003f7 2001-08-27T21:24:59 whoops. Don't define anything here. imax is the default
Jim Meyering d7caae67 2001-08-27T08:44:27 include strtoxmax.c
Jim Meyering 4bbca92c 2001-08-26T07:00:08 Stub. Just #define STRTOUXMAX_SIGNED, then #include "strtouxmax.c"