mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Update.
* string/bits/string2.h (__strtok_r_1c): Optimize a bit.
This commit is contained in:
parent
0991cbf654
commit
29215bbd7e
@ -1,5 +1,7 @@
|
|||||||
2001-09-14 Ulrich Drepper <drepper@redhat.com>
|
2001-09-14 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* string/bits/string2.h (__strtok_r_1c): Optimize a bit.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
|
* sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
|
||||||
ETHER_CRC_LEN.
|
ETHER_CRC_LEN.
|
||||||
|
|
||||||
|
@ -1044,15 +1044,13 @@ __strtok_r_1c (char *__s, char __sep, char **__nextp)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
__result = __s;
|
__result = __s;
|
||||||
while (*__s != '\0' && *__s != __sep)
|
while (*__s != '\0')
|
||||||
++__s;
|
if (*__s++ == __sep)
|
||||||
if (*__s == '\0')
|
|
||||||
*__nextp = __s;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
*__s = '\0';
|
__s[-1] = '\0';
|
||||||
*__nextp = __s + 1;
|
break;
|
||||||
}
|
}
|
||||||
|
*__nextp = __s;
|
||||||
}
|
}
|
||||||
return __result;
|
return __result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user