mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:05:44 +00:00
Create a branch for audio work
svn path=/branches/audio-bringup/; revision=49478
This commit is contained in:
parent
26c20f3857
commit
5eb25b5c24
20759 changed files with 0 additions and 1141005 deletions
23
lib/sdk/crt/mbstring/mbsstr.c
Normal file
23
lib/sdk/crt/mbstring/mbsstr.c
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include <mbstring.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
unsigned char *_mbsstr(const unsigned char *src1,const unsigned char *src2)
|
||||
{
|
||||
int 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue