Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmbspbrk.c
Go to the documentation of this file.
00001 #include <stdlib.h> 00002 #include <mbstring.h> 00003 00004 int isleadbyte(int byte); 00005 00006 /* 00007 * not correct 00008 * 00009 * @implemented 00010 */ 00011 unsigned char * _mbspbrk(const unsigned char *s1, const unsigned char *s2) 00012 { 00013 const unsigned char* p; 00014 00015 while (*s1) 00016 { 00017 for (p = s2; *p; p += (isleadbyte(*p) ? 2 : 1)) 00018 { 00019 if (*p == *s1) 00020 if (!isleadbyte(*p) || (*(p+1) == *(s1 + 1))) 00021 return (unsigned char*)s1; 00022 } 00023 s1 += (isleadbyte(*s1) ? 2 : 1); 00024 } 00025 return NULL; 00026 } Generated on Fri May 25 2012 04:34:55 for ReactOS by
1.7.6.1
|