]> pd.if.org Git - pdclib.old/blobdiff - functions/string/memchr.c
Removed the $Name$ tags (not supported by SVN). Added $Id$ to Makefile / text files.
[pdclib.old] / functions / string / memchr.c
index 75809e079d62a7b35a789ca863cd113d059287a4..f2add9dcdeccf04b2be0fa7f5a1706273d6ef2c3 100644 (file)
@@ -1,7 +1,5 @@
 /* $Id$ */
 
-/* Release $Name$ */
-
 /* memchr( const void *, int, size_t )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -10,6 +8,8 @@
 
 #include <string.h>
 
+#ifndef REGTEST
+
 void * memchr( const void * s, int c, size_t n )
 {
     const unsigned char * p = (const unsigned char *) s;
@@ -24,12 +24,13 @@ void * memchr( const void * s, int c, size_t n )
     return NULL;
 }
 
+#endif
+
 #ifdef TEST
 #include <_PDCLIB_test.h>
 
-int main()
+int main( void )
 {
-    BEGIN_TESTS;
     TESTCASE( memchr( abcde, 'c', 5 ) == &abcde[2] );
     TESTCASE( memchr( abcde, 'a', 1 ) == &abcde[0] );
     TESTCASE( memchr( abcde, 'a', 0 ) == NULL );