]> pd.if.org Git - pdclib/blobdiff - functions/string/strrchr.c
Removed old files.
[pdclib] / functions / string / strrchr.c
diff --git a/functions/string/strrchr.c b/functions/string/strrchr.c
deleted file mode 100644 (file)
index 4f1e2b5..0000000
+++ /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;
-}