summaryrefslogtreecommitdiff
path: root/lib/strpbrk.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-12-01 10:42:12 +0000
committerJim Meyering <jim@meyering.net>2002-12-01 10:42:12 +0000
commitc19811164825afcd71f4aeb02a063ebfae322a8c (patch)
treee097c5b62f2e2af260b10db77493872f64baf927 /lib/strpbrk.c
parent422e4b4c3a97ba8a6db05d44df188ca676947ff9 (diff)
downloadcoreutils-c19811164825afcd71f4aeb02a063ebfae322a8c.tar.xz
Update from gnulib (trivial changes).
Diffstat (limited to 'lib/strpbrk.c')
-rw-r--r--lib/strpbrk.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/strpbrk.c b/lib/strpbrk.c
index 6a6a321cd..84e4a0273 100644
--- 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;
}