#include <corecrt_internal_securecrt.h>
#include <string.h>
Go to the source code of this file.
◆ __acrt_wcstok_s_novalidation()
Definition at line 16 of file wcstok_s.cpp.
21{
22
23
24 wchar_t* string_it = string != nullptr
27
28
29
30
31
32 while (*string_it)
33 {
34 wchar_t const* control_it =
control;
35 for (; *control_it && *control_it != *string_it; ++control_it)
36 {
37 }
38
39 if (!*control_it)
40 break;
41
42 ++string_it;
43 }
44
45 wchar_t* const token_first = string_it;
46
47
48
49 for (; *string_it; ++string_it)
50 {
51 wchar_t const* control_it =
control;
52 for (; *control_it && *control_it != *string_it; ++control_it)
53 {
54 }
55
56 if (*control_it)
57 {
58 *string_it++ = '\0';
59 break;
60 }
61 }
62
63
65
66
67 return string_it != token_first ? token_first : nullptr;
68}
Referenced by wcstok(), and wcstok_s().
◆ wcstok_s()
Definition at line 72 of file wcstok_s.cpp.
77{
81
83}
#define _VALIDATE_CONDITION_ERROR_RETURN(_Condition, _ErrorCode, _Ret)
#define _VALIDATE_POINTER_ERROR_RETURN(_Pointer, _ErrorCode, _Ret)
wchar_t *__cdecl __acrt_wcstok_s_novalidation(_Inout_opt_z_ wchar_t *string, _In_z_ wchar_t const *control, _Inout_ _Deref_prepost_opt_z_ wchar_t **context)