* string/bits/string2.h (__strtok_r_1c): Optimize a bit.
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
ETHER_CRC_LEN.
else
{
__result = __s;
- while (*__s != '\0' && *__s != __sep)
- ++__s;
- if (*__s == '\0')
- *__nextp = __s;
- else
- {
- *__s = '\0';
- *__nextp = __s + 1;
- }
+ while (*__s != '\0')
+ if (*__s++ == __sep)
+ {
+ __s[-1] = '\0';
+ break;
+ }
+ *__nextp = __s;
}
return __result;
}