mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 07:00:19 +00:00
23 lines
433 B
C
23 lines
433 B
C
#include <mbstring.h>
|
|
#include <stdlib.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
unsigned char *_mbsstr(const unsigned char *src1,const unsigned char *src2)
|
|
{
|
|
size_t len;
|
|
|
|
if (src2 ==NULL || *src2 == 0)
|
|
return (unsigned char *)src1;
|
|
|
|
len = _mbslen(src2);
|
|
|
|
while(*src1)
|
|
{
|
|
if ((*src1 == *src2) && (_mbsncmp(src1,src2,len) == 0))
|
|
return (unsigned char *)src1;
|
|
src1 = (unsigned char *)_mbsinc(src1);
|
|
}
|
|
return NULL;
|
|
}
|