summaryrefslogtreecommitdiff
path: root/lib/strpbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strpbrk.c')
-rw-r--r--lib/strpbrk.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/strpbrk.c b/lib/strpbrk.c
new file mode 100644
index 000000000..557c1a57b
--- /dev/null
+++ b/lib/strpbrk.c
@@ -0,0 +1,15 @@
+#include <stddef.h>
+
+/* Shamefully copied from glibc 2.2.3 */
+char *_xine_private_strpbrk(const char *s, const char *accept) {
+
+ while(*s != '\0') {
+ const char *a = accept;
+ while(*a != '\0')
+ if(*a++ == *s)
+ return(char *) s;
+ ++s;
+ }
+
+ return NULL;
+}