X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrncmp.c;h=2965b0d37bd029724f461ec2641f848b57fe1bda;hb=15cd62244797b9aeb3279484f8e760778c52bc4e;hp=55262c49a067472cd6abe4b1ad42cd5cbe2115ec;hpb=b1fc26afebd4d557ff89a44bc21767a8704c3809;p=pdclib diff --git a/functions/string/strncmp.c b/functions/string/strncmp.c index 55262c4..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,7 +29,8 @@ int strncmp( const char * s1, const char * s2, size_t n ) #endif #ifdef TEST -#include <_PDCLIB_test.h> + +#include "_PDCLIB_test.h" int main( void ) { @@ -49,4 +50,5 @@ int main( void ) TESTCASE( strncmp( abcde, cmpabcd_, 10 ) < 0 ); return TEST_RESULTS; } + #endif