mirror of
https://github.com/reactos/reactos.git
synced 2025-06-16 19:08:31 +00:00
34 lines
558 B
C
34 lines
558 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 wcscspn(const wchar_t *str,const wchar_t *reject)
|
||
|
{
|
||
|
wchar_t *s;
|
||
|
wchar_t *t;
|
||
|
s=(wchar_t *)str;
|
||
|
do {
|
||
|
t=(wchar_t *)reject;
|
||
|
while (*t) {
|
||
|
if (*t==*s)
|
||
|
break;
|
||
|
t++;
|
||
|
}
|
||
|
if (*t)
|
||
|
break;
|
||
|
s++;
|
||
|
} while (*s);
|
||
|
return s-str; /* nr of wchars */
|
||
|
}
|