Usermode/libc - Fixes and additions from curl
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / string.c
index aa79ec9..0757c24 100644 (file)
@@ -369,6 +369,19 @@ EXPORT size_t strspn(const char *haystack, const char *accept)
        return ret;
 }
 
+EXPORT char *strpbrk(const char *haystack, const char *accept)
+{
+       while( *haystack )
+       {
+               for( int i = 0; accept[i]; i ++ )
+               {
+                       if( accept[i] == *haystack )
+                               return (char*)haystack;
+               }
+       }
+       return NULL;
+}
+
 char *strtok(char *str, const char *delim)
 {
        static char *__saveptr;

UCC git Repository :: git.ucc.asn.au