ReactOS 0.4.16-dev-889-g9563c07
wcstok.cpp
Go to the documentation of this file.
1//
2// wcstok.cpp
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Defines wcstok(), which tokenizes a string via repeated calls. See strtok()
7// for more details.
8//
9#include <corecrt_internal.h>
10#include <string.h>
11
12
13
15extern "C" wchar_t* __cdecl __acrt_wcstok_s_novalidation(
16 _Inout_opt_z_ wchar_t* string,
17 _In_z_ wchar_t const* control,
19 );
20
21
22
23extern "C" wchar_t* __cdecl wcstok(
24 wchar_t* const string,
25 wchar_t const* const control,
26 wchar_t** const context
27 )
28{
29 wchar_t** const context_to_use = context != nullptr
30 ? context
32
33 return __acrt_wcstok_s_novalidation(string, control, context_to_use);
34}
#define __cdecl
Definition: accygwin.h:79
__acrt_ptd *__cdecl __acrt_getptd(void)
#define _Deref_prepost_opt_z_
Definition: ms_sal.h:1424
#define _Inout_
Definition: no_sal2.h:162
#define _In_z_
Definition: no_sal2.h:164
#define _Check_return_
Definition: no_sal2.h:60
#define _Inout_opt_z_
Definition: no_sal2.h:220
wchar_t * _wcstok_token
Definition: http.c:7252
Definition: dialog.c:52
wchar_t *__cdecl wcstok(wchar_t *const string, wchar_t const *const control, wchar_t **const context)
Definition: wcstok.cpp:23
_Check_return_ 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)
Definition: wcstok_s.cpp:16