X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrrchr.c;h=7387f22f0e1953687154e312e030d0c80a9f8a82;hb=5596d52a975696c29adc741ac1cdb49fb7315d73;hp=69321b29e15e8ad4b2e6a37e81c2bfca80fabde9;hpb=40d0246771c8e593d4b5fdc97dd87b4afd260be2;p=pdclib diff --git a/functions/string/strrchr.c b/functions/string/strrchr.c index 69321b2..7387f22 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. @@ -31,10 +27,9 @@ char * strrchr( const char * s, int c ) #ifdef TEST #include <_PDCLIB_test.h> -int main() +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] );