X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fstring%2Fmemcmp.c;h=2997694de4d40f73a90f74857f147ac96b4572a4;hb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;hp=167355f82a2f4255d7aa0cd08d27d49ac2338459;hpb=3f6094115e79a45413f08361b68b71eb08da306e;p=pdclib 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 );