ReactOS 0.4.15-dev-7953-g1f49173
wcsspn.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/sdk/crt/wstring/wcsspn.c
5 * PURPOSE: Unknown
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Added license header
9 */
10
11#include <precomp.h>
12
13/*
14 * @implemented
15 */
16size_t CDECL wcsspn(const wchar_t *str,const wchar_t *accept)
17{
18 wchar_t *s;
19 wchar_t *t;
20 s=(wchar_t *)str;
21 do {
22 t=(wchar_t *)accept;
23 while (*t) {
24 if (*t==*s)
25 break;
26 t++;
27 }
28 if (!*t)
29 break;
30 s++;
31 } while (*s);
32 return s-str; /* nr of wchars */
33}
#define CDECL
Definition: compat.h:29
GLdouble s
Definition: gl.h:2039
GLdouble GLdouble t
Definition: gl.h:2047
const WCHAR * str
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
Definition: socklife.c:23
size_t CDECL wcsspn(const wchar_t *str, const wchar_t *accept)
Definition: wcsspn.c:16