X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=lib%2Fmsvcrt%2Fstring%2Fmemcmp.c;h=95d3d25f4c0c78fedd8ddff45a2d120cc14913d9;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hp=81371e0334865a97a3822f9b9075462bd1372445;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3;p=reactos.git diff --git a/lib/msvcrt/string/memcmp.c b/lib/msvcrt/string/memcmp.c index 81371e0..95d3d25 100644 --- a/lib/msvcrt/string/memcmp.c +++ b/lib/msvcrt/string/memcmp.c @@ -1,17 +1,16 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #include -int -memcmp(const void *s1, const void *s2, size_t n) -{ - if (n != 0) - { - const unsigned char *p1 = s1, *p2 = s2; +#pragma function(memcmp) - do { - if (*p1++ != *p2++) - return (*--p1 - *--p2); - } while (--n != 0); - } - return 0; +int memcmp(const void *s1, const void *s2, size_t n) +{ + if (n != 0) { + const unsigned char *p1 = s1, *p2 = s2; + do { + if (*p1++ != *p2++) + return (*--p1 - *--p2); + } while (--n != 0); + } + return 0; }