X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrncmp.c;h=1c73e998340e4004a2b7d75718f9d5dd4213877b;hb=c510d64eb2b5d70547b4d36f35ebd12809aabd32;hp=43321709ee515a0d4fcc1380b0bf2b8e0d250d26;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/functions/string/strncmp.c b/functions/string/strncmp.c index 4332170..1c73e99 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; }