projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a34dfa9
)
Update from GNU libc.
author
Jim Meyering
<jim@meyering.net>
Fri, 17 Nov 2000 08:19:01 +0000
(08:19 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 17 Nov 2000 08:19:01 +0000
(08:19 +0000)
lib/strstr.c
patch
|
blob
|
history
diff --git
a/lib/strstr.c
b/lib/strstr.c
index 7709d8464abe664312f8f41856b9047e368070a3..c41e90349ff7b96be0cbcfdf2194649f551048b3 100644
(file)
--- a/
lib/strstr.c
+++ b/
lib/strstr.c
@@
-28,11
+28,15
@@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
# include <config.h>
#endif
-#include <string.h>
+#if defined _LIBC || defined HAVE_STRING_H
+# include <string.h>
+#endif
#include <sys/types.h>
typedef unsigned chartype;
+#undef strstr
+
char *
strstr (const char *phaystack, const char *pneedle)
{
@@
-105,7
+109,7
@@
jin: a = *++haystack;
}
while (*rhaystack == a);
- needle = rneedle; /* took the register-poor aproach */
+ needle = rneedle; /* took the register-poor ap
p
roach */
if (a == '\0')
break;