Update from gnulib (trivial changes).
authorJim Meyering <jim@meyering.net>
Sun, 1 Dec 2002 10:42:12 +0000 (10:42 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 1 Dec 2002 10:42:12 +0000 (10:42 +0000)
lib/strpbrk.c

index 6a6a321..84e4a02 100644 (file)
 # 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;
 }