1 #include <mbstring.h> 2 #include <stdlib.h> 3 4 /* 5 * @implemented 6 */ 7 unsigned char *_mbsstr(const unsigned char *src1,const unsigned char *src2) 8 { 9 size_t len; 10 11 if (src2 ==NULL || *src2 == 0) 12 return (unsigned char *)src1; 13 14 len = _mbslen(src2); 15 16 while(*src1) 17 { 18 if ((*src1 == *src2) && (_mbsncmp(src1,src2,len) == 0)) 19 return (unsigned char *)src1; 20 src1 = (unsigned char *)_mbsinc(src1); 21 } 22 return NULL; 23 } 24