/* $Id$ */
-/* Release $Name$ */
-
/* strchr( const char *, int )
This file is part of the Public Domain C Library (PDCLib).
#include <string.h>
+#ifndef REGTEST
+
char * strchr( const char * s, int c )
{
do
return NULL;
}
+#endif
+
#ifdef TEST
#include <_PDCLIB_test.h>
-int main()
+int main( void )
{
char abccd[] = "abccd";
- BEGIN_TESTS;
TESTCASE( strchr( abccd, 'x' ) == NULL );
TESTCASE( strchr( abccd, 'a' ) == &abccd[0] );
TESTCASE( strchr( abccd, 'd' ) == &abccd[4] );