1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
 	means %d from 3rd arg).

	* sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.

	* stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
 	END, not GROUP.
This commit is contained in:
Roland McGrath
1995-03-18 20:44:21 +00:00
parent a38f13baf0
commit be69ea41eb
4 changed files with 68 additions and 22 deletions

View File

@ -175,6 +175,8 @@ INTERNAL (strtol) (nptr, endptr, base, group)
else
end = correctly_grouped_prefix (s, end, thousands, grouping);
}
else
end = NULL;
cutoff = ULONG_MAX / (unsigned LONG int) base;
cutlim = ULONG_MAX % (unsigned LONG int) base;
@ -183,7 +185,7 @@ INTERNAL (strtol) (nptr, endptr, base, group)
i = 0;
for (c = *s; c != '\0'; c = *++s)
{
if (group && s == end)
if (s == end)
break;
if (isdigit (c))
c -= '0';