X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrpbrk.c;fp=functions%2Fstring%2Fstrpbrk.c;h=0000000000000000000000000000000000000000;hb=a1f747e81dad0bb9897cb11c652403bb7bbf084c;hp=1006ab6d21a32b995ff3b29965310f21626447fc;hpb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;p=pdclib diff --git a/functions/string/strpbrk.c b/functions/string/strpbrk.c deleted file mode 100644 index 1006ab6..0000000 --- a/functions/string/strpbrk.c +++ /dev/null @@ -1,27 +0,0 @@ -/* ---------------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------------- - * Public Domain C Library - http://pdclib.sourceforge.net - * This code is Public Domain. Use, modify, and redistribute at will. - * --------------------------------------------------------------------------*/ - -#include <__NULL.h> - -char * strpbrk( const char *src_1, const char * src_2 ) -{ - const char * p1 = src_1; - const char * p2; - while ( *p1 != '\0' ) - { - p2 = src_2; - while ( *p2 != '\0' ) - { - if ( *p1 == *p2++ ) - { - return (char *) p1; - } - } - ++p1; - } - return NULL; -}