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
14
_Check_return_
15
extern
"C"
wchar_t
*
__cdecl
__acrt_wcstok_s_novalidation
(
16
_Inout_opt_z_
wchar_t
*
string
,
17
_In_z_
wchar_t
const
*
control
,
18
_Inout_
_Deref_prepost_opt_z_
wchar_t
**
context
19
);
20
21
22
23
extern
"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
31
: &
__acrt_getptd
()->
_wcstok_token
;
32
33
return
__acrt_wcstok_s_novalidation
(
string
,
control
, context_to_use);
34
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
corecrt_internal.h
__acrt_getptd
__acrt_ptd *__cdecl __acrt_getptd(void)
Definition:
per_thread_data.cpp:298
_Deref_prepost_opt_z_
#define _Deref_prepost_opt_z_
Definition:
ms_sal.h:1424
_Inout_
#define _Inout_
Definition:
no_sal2.h:162
_In_z_
#define _In_z_
Definition:
no_sal2.h:164
_Check_return_
#define _Check_return_
Definition:
no_sal2.h:60
_Inout_opt_z_
#define _Inout_opt_z_
Definition:
no_sal2.h:220
__acrt_ptd::_wcstok_token
wchar_t * _wcstok_token
Definition:
corecrt_internal.h:881
context
Definition:
http.c:7252
control
Definition:
dialog.c:52
wcstok
wchar_t *__cdecl wcstok(wchar_t *const string, wchar_t const *const control, wchar_t **const context)
Definition:
wcstok.cpp:23
__acrt_wcstok_s_novalidation
_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
sdk
lib
ucrt
string
wcstok.cpp
Generated on Tue Mar 25 2025 06:14:53 for ReactOS by
1.9.6