/* A more useful interface to strtol.
- Copyright 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1998-2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
unsigned long int strtoul ();
#endif
+#ifndef strtoumax
+uintmax_t strtoumax ();
+#endif
+
static int
bkm_scale (__strtol_t *x, int scale_factor)
{
break;
case 'G': /* Giga */
+ case 'g': /* 'g' is undocumented; for compatibility only */
overflow = bkm_scale_by_power (&tmp, base, 3);
break;
break;
case 'M': /* Mega */
- case 'm': /* 'm' is undocumented; for backward compatibility only */
+ case 'm': /* 'm' is undocumented; for compatibility only */
overflow = bkm_scale_by_power (&tmp, base, 2);
break;
break;
case 'T': /* Tera */
+ case 't': /* 't' is undocumented; for compatibility only */
overflow = bkm_scale_by_power (&tmp, base, 4);
break;