projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
422e4b4
)
Update from gnulib (trivial changes).
author
Jim Meyering
<jim@meyering.net>
Sun, 1 Dec 2002 10:42:12 +0000
(10:42 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 1 Dec 2002 10:42:12 +0000
(10:42 +0000)
lib/strpbrk.c
patch
|
blob
|
history
diff --git
a/lib/strpbrk.c
b/lib/strpbrk.c
index
6a6a321
..
84e4a02
100644
(file)
--- a/
lib/strpbrk.c
+++ b/
lib/strpbrk.c
@@
-20,6
+20,14
@@
# include <config.h>
#endif
+#include <stddef.h>
+
+#if defined _LIBC || HAVE_STRING_H
+# include <string.h>
+#endif
+
+#undef strpbrk
+
/* Find the first occurrence in S of any character in ACCEPT. */
char *
strpbrk (const char *s, const char *accept)
@@
-33,5
+41,5
@@
strpbrk (const char *s, const char *accept)
++s;
}
- return
0
;
+ return
NULL
;
}