mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
Update.
1998-01-30 22:37 Ulrich Drepper <drepper@cygnus.com> * sysdeps/generic/memmem.c: Correct last change.
This commit is contained in:
parent
9931ba2412
commit
9aae565a56
@ -1,3 +1,7 @@
|
|||||||
|
1998-01-30 22:37 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/generic/memmem.c: Correct last change.
|
||||||
|
|
||||||
1998-01-30 22:12 Ulrich Drepper <drepper@cygnus.com>
|
1998-01-30 22:12 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/Makefile [$(subdir)==nis]: Define
|
* sysdeps/unix/sysv/linux/Makefile [$(subdir)==nis]: Define
|
||||||
|
@ -36,7 +36,7 @@ memmem (haystack, haystack_len, needle, needle_len)
|
|||||||
if (needle_len == 0)
|
if (needle_len == 0)
|
||||||
/* The first occurrence of the empty string is deemed to occur at
|
/* The first occurrence of the empty string is deemed to occur at
|
||||||
the beginning of the string. */
|
the beginning of the string. */
|
||||||
return (void *) &((const char *) haystack);
|
return (void *) haystack;
|
||||||
|
|
||||||
for (begin = (const char *) haystack; begin <= last_possible; ++begin)
|
for (begin = (const char *) haystack; begin <= last_possible; ++begin)
|
||||||
if (begin[0] == ((const char *) needle)[0] &&
|
if (begin[0] == ((const char *) needle)[0] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user