2008-06-06 17:49:24 +00:00
|
|
|
#include <precomp.h>
|
2007-03-14 20:24:57 +00:00
|
|
|
#include <mbstring.h>
|
|
|
|
|
|
|
|
/*
|
2008-06-06 17:49:24 +00:00
|
|
|
* @implemented
|
2007-03-14 20:24:57 +00:00
|
|
|
*/
|
2008-06-06 17:49:24 +00:00
|
|
|
unsigned char *_mbsspnp (const unsigned char *str1, const unsigned char *str2)
|
2007-03-14 20:24:57 +00:00
|
|
|
{
|
2008-06-06 17:49:24 +00:00
|
|
|
int c;
|
2007-03-14 20:24:57 +00:00
|
|
|
|
2008-06-06 17:49:24 +00:00
|
|
|
while ((c = _mbsnextc (str1))) {
|
|
|
|
|
2010-01-20 22:56:01 +00:00
|
|
|
if (_mbschr (str2, c) == 0)
|
2008-06-06 17:49:24 +00:00
|
|
|
return (unsigned char *) str1;
|
|
|
|
|
|
|
|
str1 = _mbsinc ((unsigned char *) str1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2007-03-14 20:24:57 +00:00
|
|
|
}
|