X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrncmp.c;h=2965b0d37bd029724f461ec2641f848b57fe1bda;hb=d7154dc8cd1b7d41d0d956b7310e59d794f1a59f;hp=75b399d1c3298cc9f69181b48f59aab0521b2d90;hpb=d6f1494a4f38a212b29a13ee713885058dcf0fe7;p=pdclib diff --git a/functions/string/strncmp.c b/functions/string/strncmp.c index 75b399d..2965b0d 100644 --- a/functions/string/strncmp.c +++ b/functions/string/strncmp.c @@ -16,7 +16,7 @@ int strncmp( const char * s1, const char * s2, size_t n ) ++s2; --n; } - if ( ( n == 0 ) ) + if ( n == 0 ) { return 0; } @@ -29,6 +29,7 @@ int strncmp( const char * s1, const char * s2, size_t n ) #endif #ifdef TEST + #include "_PDCLIB_test.h" int main( void ) @@ -49,4 +50,5 @@ int main( void ) TESTCASE( strncmp( abcde, cmpabcd_, 10 ) < 0 ); return TEST_RESULTS; } + #endif