Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstrnicmp.c
Go to the documentation of this file.
00001 #include <precomp.h> 00002 00003 /* 00004 * @implemented 00005 */ 00006 int _strnicmp(const char *s1, const char *s2, size_t n) 00007 { 00008 00009 if (n == 0) 00010 return 0; 00011 do { 00012 if (toupper(*s1) != toupper(*s2++)) 00013 return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)--s2); 00014 if (*s1++ == 0) 00015 break; 00016 } while (--n != 0); 00017 return 0; 00018 } Generated on Sat May 26 2012 04:35:36 for ReactOS by
1.7.6.1
|