X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrncmp.c;h=2965b0d37bd029724f461ec2641f848b57fe1bda;hb=d7154dc8cd1b7d41d0d956b7310e59d794f1a59f;hp=43321709ee515a0d4fcc1380b0bf2b8e0d250d26;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/functions/string/strncmp.c b/functions/string/strncmp.c index 4332170..2965b0d 100644 --- a/functions/string/strncmp.c +++ b/functions/string/strncmp.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* strncmp( const char *, const char *, size_t ) This file is part of the Public Domain C Library (PDCLib). @@ -18,7 +16,7 @@ int strncmp( const char * s1, const char * s2, size_t n ) ++s2; --n; } - if ( ( n == 0 ) ) + if ( n == 0 ) { return 0; } @@ -31,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 ) { @@ -51,4 +50,5 @@ int main( void ) TESTCASE( strncmp( abcde, cmpabcd_, 10 ) < 0 ); return TEST_RESULTS; } + #endif