mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Thu Jan 25 18:58:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Thu Jan 25 18:58:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
|
||||||
|
|
||||||
Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
* malloc/mcheck.c (mabort): Declare prototype.
|
* malloc/mcheck.c (mabort): Declare prototype.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1992, 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
@ -112,7 +112,11 @@ INTERNAL (strtol) (nptr, endptr, base, group)
|
|||||||
int base;
|
int base;
|
||||||
int group;
|
int group;
|
||||||
{
|
{
|
||||||
|
#if UNSIGNED
|
||||||
|
#define negative 0
|
||||||
|
#else
|
||||||
int negative;
|
int negative;
|
||||||
|
#endif
|
||||||
register unsigned LONG int cutoff;
|
register unsigned LONG int cutoff;
|
||||||
register unsigned int cutlim;
|
register unsigned int cutlim;
|
||||||
register unsigned LONG int i;
|
register unsigned LONG int i;
|
||||||
@ -158,6 +162,7 @@ INTERNAL (strtol) (nptr, endptr, base, group)
|
|||||||
if (*s == '\0')
|
if (*s == '\0')
|
||||||
goto noconv;
|
goto noconv;
|
||||||
|
|
||||||
|
#if !UNSIGNED
|
||||||
/* Check for a sign. */
|
/* Check for a sign. */
|
||||||
if (*s == '-')
|
if (*s == '-')
|
||||||
{
|
{
|
||||||
@ -171,6 +176,7 @@ INTERNAL (strtol) (nptr, endptr, base, group)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
negative = 0;
|
negative = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (base == 16 && s[0] == '0' && toupper (s[1]) == 'X')
|
if (base == 16 && s[0] == '0' && toupper (s[1]) == 'X')
|
||||||
s += 2;
|
s += 2;
|
||||||
|
Reference in New Issue
Block a user