projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
strstr.c
diff --git
a/lib/strstr.c
b/lib/strstr.c
index
f8137c5
..
dd46222
100644
(file)
--- a/
lib/strstr.c
+++ b/
lib/strstr.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1994, 1999, 200
0
Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1999, 200
2-2003
Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
@@
-29,10
+29,11
@@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#endif
#include <string.h>
#endif
#include <string.h>
-#include <sys/types.h>
typedef unsigned chartype;
typedef unsigned chartype;
+#undef strstr
+
char *
strstr (const char *phaystack, const char *pneedle)
{
char *
strstr (const char *phaystack, const char *pneedle)
{
@@
-105,7
+106,7
@@
jin: a = *++haystack;
}
while (*rhaystack == a);
}
while (*rhaystack == a);
- needle = rneedle; /* took the register-poor aproach */
+ needle = rneedle; /* took the register-poor ap
p
roach */
if (a == '\0')
break;
if (a == '\0')
break;