ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

memcmp.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.