mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 23:43:08 +00:00
- Update many parts of CRT, and misc cleanup.
- Largely based on the patch by Samuel Serapion. - Include file.c from Wine's msvcrt, but exclude its contents from the build process for now. svn path=/trunk/; revision=33866
This commit is contained in:
parent
3f2bc58da5
commit
45ebe0ccc2
89 changed files with 4487 additions and 1700 deletions
|
@ -1,19 +1,22 @@
|
|||
#include <precomp.h>
|
||||
#include <mbstring.h>
|
||||
|
||||
/*
|
||||
* FIXME not correct
|
||||
*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
unsigned char * _mbsspnp(const unsigned char *s1, const unsigned char *s2)
|
||||
unsigned char *_mbsspnp (const unsigned char *str1, const unsigned char *str2)
|
||||
{
|
||||
const unsigned char *p = s1, *spanp;
|
||||
char c, sc;
|
||||
int c;
|
||||
unsigned char *ptr;
|
||||
|
||||
cont:
|
||||
c = *p++;
|
||||
for (spanp = s2; (sc = *spanp++) != 0;)
|
||||
if (sc == c)
|
||||
goto cont;
|
||||
return (unsigned char *)p;
|
||||
while ((c = _mbsnextc (str1))) {
|
||||
|
||||
if ((ptr = _mbschr (str2, c)) == 0)
|
||||
return (unsigned char *) str1;
|
||||
|
||||
str1 = _mbsinc ((unsigned char *) str1);
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue