ReactOS  0.4.15-dev-1070-ge1a01de
wcsspn.c File Reference
#include <precomp.h>
Include dependency graph for wcsspn.c:

Go to the source code of this file.

Functions

size_t CDECL wcsspn (const wchar_t *str, const wchar_t *accept)
 

Function Documentation

◆ wcsspn()

size_t CDECL wcsspn ( const wchar_t str,
const wchar_t accept 
)

Definition at line 16 of file wcsspn.c.

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 }
GLdouble GLdouble t
Definition: gl.h:2047
const WCHAR * str
GLdouble s
Definition: gl.h:2039
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
Definition: socklife.c:23