X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fcrtdll%2Fstring%2Fstrncmp.c;fp=lib%2Fcrtdll%2Fstring%2Fstrncmp.c;h=0000000000000000000000000000000000000000;hp=6a2352ddfd84c77df609a2caaf7b69ea3c9fcb90;hb=a3df8bf1429570e0bd6c6428f6ed80073578cf4b;hpb=7c0db166f81fbe8c8b913d7f26048e337d383605 diff --git a/lib/crtdll/string/strncmp.c b/lib/crtdll/string/strncmp.c deleted file mode 100644 index 6a2352d..0000000 --- a/lib/crtdll/string/strncmp.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ -#include - - -int -strncmp(const char *s1, const char *s2, size_t n) -{ - - if (n == 0) - return 0; - do { - if (*s1 != *s2++) - return *(unsigned const char *)s1 - *(unsigned const char *)--s2; - if (*s1++ == 0) - break; - } while (--n != 0); - return 0; -}