]> pd.if.org Git - pdclib/blobdiff - functions/string/strncmp.c
More fixes.
[pdclib] / functions / string / strncmp.c
index 75b399d1c3298cc9f69181b48f59aab0521b2d90..2965b0d37bd029724f461ec2641f848b57fe1bda 100644 (file)
@@ -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