]> pd.if.org Git - pdclib/blobdiff - functions/string/memchr.c
Removed old files.
[pdclib] / functions / string / memchr.c
diff --git a/functions/string/memchr.c b/functions/string/memchr.c
deleted file mode 100644 (file)
index 1c9563c..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* ----------------------------------------------------------------------------
- * $Id$
- * ----------------------------------------------------------------------------
- * Public Domain C Library - http://pdclib.sourceforge.net
- * This code is Public Domain. Use, modify, and redistribute at will.
- * --------------------------------------------------------------------------*/
-
-#include <__size_t.h>
-#include <__NULL.h>
-
-void * memchr( const void * src, int c, size_t n )
-{
-    const unsigned char * p = (const unsigned char *) src;
-    while ( n-- )
-    {
-        if ( *p == (unsigned char) c )
-        {
-            return (void *) p;
-        }
-        ++p;
-    }
-    return NULL;
-}