X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fmemcmp.c;h=2997694de4d40f73a90f74857f147ac96b4572a4;hb=326f9b37c5bbc8b8da0aa62c3ea04833eea4963c;hp=167355f82a2f4255d7aa0cd08d27d49ac2338459;hpb=d18abec50882ca919a52ffc54b2b5c8703cb2864;p=pdclib.old diff --git a/functions/string/memcmp.c b/functions/string/memcmp.c index 167355f..2997694 100644 --- a/functions/string/memcmp.c +++ b/functions/string/memcmp.c @@ -33,10 +33,9 @@ int memcmp( const void * s1, const void * s2, size_t n ) #ifdef TEST #include <_PDCLIB_test.h> -int main() +int main( void ) { char const xxxxx[] = "xxxxx"; - BEGIN_TESTS; TESTCASE( memcmp( abcde, abcdx, 5 ) < 0 ); TESTCASE( memcmp( abcde, abcdx, 4 ) == 0 ); TESTCASE( memcmp( abcde, xxxxx, 0 ) == 0 );