X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrrchr.c;h=c2369fa4589269bd02864ed7a581b85cdbbfabbc;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=69321b29e15e8ad4b2e6a37e81c2bfca80fabde9;hpb=40d0246771c8e593d4b5fdc97dd87b4afd260be2;p=pdclib diff --git a/functions/string/strrchr.c b/functions/string/strrchr.c index 69321b2..c2369fa 100644 --- a/functions/string/strrchr.c +++ b/functions/string/strrchr.c @@ -1,8 +1,4 @@ -/* $Id$ */ - -/* Release $Name$ */ - -/* strrchr( const char *, int c ) +/* strrchr( const char *, int ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -29,16 +25,17 @@ char * strrchr( const char * s, int c ) #endif #ifdef TEST -#include <_PDCLIB_test.h> -int main() +#include "_PDCLIB_test.h" + +int main( void ) { char abccd[] = "abccd"; - BEGIN_TESTS; TESTCASE( strrchr( abcde, '\0' ) == &abcde[5] ); TESTCASE( strrchr( abcde, 'e' ) == &abcde[4] ); TESTCASE( strrchr( abcde, 'a' ) == &abcde[0] ); TESTCASE( strrchr( abccd, 'c' ) == &abccd[3] ); return TEST_RESULTS; } + #endif