Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmemcmp.c
Go to the documentation of this file.
00001 /* 00002 * $Id: memcmp.c 50647 2011-02-10 11:35:05Z tkreuzer $ 00003 */ 00004 00005 #include <string.h> 00006 00007 #ifdef _MSC_VER 00008 #pragma warning(disable: 4164) 00009 #pragma function(memcmp) 00010 #endif 00011 00012 int memcmp(const void *s1, const void *s2, size_t n) 00013 { 00014 if (n != 0) { 00015 const unsigned char *p1 = s1, *p2 = s2; 00016 do { 00017 if (*p1++ != *p2++) 00018 return (*--p1 - *--p2); 00019 } while (--n != 0); 00020 } 00021 return 0; 00022 } Generated on Sat May 26 2012 04:35:28 for ReactOS by
1.7.6.1
|