mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
33 lines
560 B
C
33 lines
560 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: lib/crt/??????
|
|
* PURPOSE: Unknown
|
|
* PROGRAMER: Unknown
|
|
* UPDATE HISTORY:
|
|
* 25/11/05: Added license header
|
|
*/
|
|
|
|
#include <precomp.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
size_t wcsspn(const wchar_t *str,const wchar_t *accept)
|
|
{
|
|
wchar_t *s;
|
|
wchar_t *t;
|
|
s=(wchar_t *)str;
|
|
do {
|
|
t=(wchar_t *)accept;
|
|
while (*t) {
|
|
if (*t==*s)
|
|
break;
|
|
t++;
|
|
}
|
|
if (!*t)
|
|
break;
|
|
s++;
|
|
} while (*s);
|
|
return s-str; /* nr of wchars */
|
|
}
|