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

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

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