X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrrchr.c;fp=functions%2Fstring%2Fstrrchr.c;h=0000000000000000000000000000000000000000;hb=a1f747e81dad0bb9897cb11c652403bb7bbf084c;hp=4f1e2b5cb58fbd230de5b04776d5050f62cc14f0;hpb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;p=pdclib diff --git a/functions/string/strrchr.c b/functions/string/strrchr.c deleted file mode 100644 index 4f1e2b5..0000000 --- a/functions/string/strrchr.c +++ /dev/null @@ -1,26 +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 * strrchr( const char * src, int c ) -{ - const char * p = src; - while ( *p != '\0' ) - { - ++p; - } - while ( p >= src ) - { - if ( *p == (char) c ) - { - return (char *) p; - } - --p; - } - return NULL; -}