ReactOS
0.4.16-dev-1946-g52006dd
Functions
wcsspn.cpp File Reference
#include <string.h>
Include dependency graph for wcsspn.cpp:
Go to the source code of this file.
Functions
size_t
__cdecl
wcsspn
(
wchar_t
const
*
const
string
,
wchar_t
const
*
const
control
)
Function Documentation
◆
wcsspn()
size_t
__cdecl
wcsspn
(
wchar_t
const
*
const
string
,
wchar_t
const
*
const
control
)
Definition at line
16
of file
wcsspn.cpp
.
20
{
21
wchar_t
const
* string_it =
string
;
22
for
(; *string_it; ++string_it)
23
{
24
for
(
wchar_t
const
* control_it =
control
; *string_it != *control_it; ++control_it)
25
{
26
// Reached the end of the control string without finding a match:
27
if
(*control_it == 0)
28
{
29
return
static_cast<
size_t
>
(string_it -
string
);
30
}
31
}
32
}
33
34
// The whole string consisted of characters from the control:
35
return
static_cast<
size_t
>
(string_it -
string
);
36
}
string
char string[160]
Definition:
util.h:11
control
Definition:
dialog.c:52
sdk
lib
ucrt
string
wcsspn.cpp
Generated on Thu Dec 4 2025 06:26:50 for ReactOS by
1.9.6