ReactOS 0.4.15-dev-7842-g558ab78
string_s.h
Go to the documentation of this file.
1
7#ifndef _INC_STRING_S
8#define _INC_STRING_S
9
10#include <string.h>
11
12#if defined(MINGW_HAS_SECURE_API)
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
23 _Inout_updates_z_(_DstSize) char *_Dst,
24 _In_ size_t _DstSize,
25 _In_ int _Value);
26
32 _Out_writes_z_(_SizeInBytes) char *_Buf,
33 _In_ size_t _SizeInBytes,
34 _In_opt_z_ const char *_ErrMsg);
35
41 _Inout_updates_z_(_Size) char *_Str,
42 _In_ size_t _Size);
43
49 _Inout_updates_z_(_Size) char *_Str,
50 _In_ size_t _Size,
52
58 _Inout_updates_z_(_Size) char *_Str,
59 _In_ size_t _Size,
60 _In_ int _Val,
61 _In_ size_t _MaxCount);
62
68 _Inout_updates_z_(_Size) char *_Str,
69 _In_ size_t _Size);
70
76 _Inout_updates_z_(_Size) char *_Str,
77 _In_ size_t _Size,
79
85 _Inout_updates_z_(_DstSizeInChars) char *_Dst,
86 _In_ size_t _DstSizeInChars,
87 _In_z_ const char *_Src,
88 _In_ size_t _MaxCount);
89
94 _strncat_s_l(
95 _Inout_updates_z_(_DstSizeInChars) char *_Dst,
96 _In_ size_t _DstSizeInChars,
97 _In_z_ const char *_Src,
98 _In_ size_t _MaxCount,
100
102 _CRTIMP
103 errno_t
104 __cdecl
105 strcpy_s(
106 _Out_writes_z_(_SizeInBytes) char *_Dst,
107 _In_ size_t _SizeInBytes,
108 _In_z_ const char *_Src);
109
111 _CRTIMP
112 errno_t
113 __cdecl
114 strncpy_s(
115 _Out_writes_z_(_DstSizeInChars) char *_Dst,
116 _In_ size_t _DstSizeInChars,
117 _In_z_ const char *_Src,
118 _In_ size_t _MaxCount);
119
121 _CRTIMP
122 errno_t
123 __cdecl
124 _strncpy_s_l(
125 _Out_writes_z_(_DstSizeInChars) char *_Dst,
126 _In_ size_t _DstSizeInChars,
127 _In_z_ const char *_Src,
128 _In_ size_t _MaxCount,
130
132 _CRTIMP
133 char *
134 __cdecl
135 strtok_s(
136 _Inout_opt_z_ char *_Str,
137 _In_z_ const char *_Delim,
138 _Inout_ _Deref_prepost_opt_z_ char **_Context);
139
141 _CRTIMP
142 char *
143 __cdecl
144 _strtok_s_l(
145 _Inout_opt_z_ char *_Str,
146 _In_z_ const char *_Delim,
147 _Inout_ _Deref_prepost_opt_z_ char **_Context,
149
150#ifndef _WSTRING_S_DEFINED
151#define _WSTRING_S_DEFINED
152
154 _CRTIMP
155 wchar_t *
156 __cdecl
157 wcstok_s(
158 _Inout_opt_z_ wchar_t *_Str,
159 _In_z_ const wchar_t *_Delim,
160 _Inout_ _Deref_prepost_opt_z_ wchar_t **_Context);
161
163 _CRTIMP
164 errno_t
165 __cdecl
167 _Out_writes_opt_z_(_SizeInWords) wchar_t *_Buf,
168 _In_ size_t _SizeInWords,
169 _In_ int _ErrNum);
170
172 _CRTIMP
173 errno_t
174 __cdecl
176 _Out_writes_opt_z_(_SizeInWords) wchar_t *_Buffer,
177 _In_ size_t _SizeInWords,
178 _In_z_ const wchar_t *_ErrMsg);
179
181 _CRTIMP
182 errno_t
183 __cdecl
185 _Inout_updates_z_(_DstSizeInWords) wchar_t *_Dst,
186 _In_ size_t _DstSizeInWords,
187 _In_ wchar_t _Val,
188 _In_ size_t _MaxCount);
189
191 _CRTIMP
192 errno_t
193 __cdecl
194 _wcsset_s(
195 _Inout_updates_z_(_SizeInWords) wchar_t *_Str,
196 _In_ size_t _SizeInWords,
197 _In_ wchar_t _Val);
198
200 _CRTIMP
201 errno_t
202 __cdecl
203 _wcslwr_s(
204 _Inout_updates_z_(_SizeInWords) wchar_t *_Str,
205 _In_ size_t _SizeInWords);
206
208 _CRTIMP
209 errno_t
210 __cdecl
212 _Inout_updates_z_(_SizeInWords) wchar_t *_Str,
213 _In_ size_t _SizeInWords,
215
217 _CRTIMP
218 errno_t
219 __cdecl
220 _wcsupr_s(
221 _Inout_updates_z_(_Size) wchar_t *_Str,
222 _In_ size_t _Size);
223
225 _CRTIMP
226 errno_t
227 __cdecl
229 _Inout_updates_z_(_Size) wchar_t *_Str,
230 _In_ size_t _Size,
232
234 _CRTIMP
235 errno_t
236 __cdecl
237 wcsncat_s(
238 _Inout_updates_z_(_DstSizeInChars) wchar_t *_Dst,
239 _In_ size_t _DstSizeInChars,
240 _In_z_ const wchar_t *_Src,
241 _In_ size_t _MaxCount);
242
244 _CRTIMP
245 errno_t
246 __cdecl
247 _wcsncat_s_l(
248 _Inout_updates_z_(_DstSizeInChars) wchar_t *_Dst,
249 _In_ size_t _DstSizeInChars,
250 _In_z_ const wchar_t *_Src,
251 _In_ size_t _MaxCount,
253
255 _CRTIMP
256 errno_t
257 __cdecl
258 wcsncpy_s(
259 _Out_writes_z_(_DstSizeInChars) wchar_t *_Dst,
260 _In_ size_t _DstSizeInChars,
261 _In_z_ const wchar_t *_Src,
262 _In_ size_t _MaxCount);
263
265 _CRTIMP
266 errno_t
267 __cdecl
268 _wcsncpy_s_l(
269 _Out_writes_z_(_DstSizeInChars) wchar_t *_Dst,
270 _In_ size_t _DstSizeInChars,
271 _In_z_ const wchar_t *_Src,
272 _In_ size_t _MaxCount,
274
275 _CRTIMP
276 wchar_t *
277 __cdecl
278 _wcstok_s_l(
279 _Inout_opt_z_ wchar_t *_Str,
280 _In_z_ const wchar_t *_Delim,
281 _Inout_ _Deref_prepost_opt_z_ wchar_t **_Context,
283
285 _CRTIMP
286 errno_t
287 __cdecl
288 _wcsset_s_l(
289 _Inout_updates_z_(_SizeInChars) wchar_t *_Str,
290 _In_ size_t _SizeInChars,
291 _In_ unsigned int _Val,
293
295 _CRTIMP
296 errno_t
297 __cdecl
298 _wcsnset_s_l(
299 _Inout_updates_z_(_SizeInChars) wchar_t *_Str,
300 _In_ size_t _SizeInChars,
301 _In_ unsigned int _Val,
302 _In_ size_t _Count,
304
305#endif /* _WSTRING_S_DEFINED */
306
307#ifdef __cplusplus
308}
309#endif
310
311#endif /* MINGW_HAS_SECURE_API */
312
313#endif /* _INC_STRING_S */
#define __cdecl
Definition: accygwin.h:79
int _Value
Definition: setjmp.h:214
#define _Check_return_wat_
Definition: crtdefs.h:459
#define _CRTIMP
Definition: crtdefs.h:72
int errno_t
Definition: crtdefs.h:374
_Check_return_wat_ _CRTIMP errno_t __cdecl _strlwr_s(_Inout_updates_z_(size) char *str, _In_ size_t size)
Definition: stubs.c:511
_Check_return_wat_ _CRTIMP errno_t __cdecl _strlwr_s_l(_Inout_updates_z_(size) char *str, _In_ size_t size, _In_opt_ _locale_t locale)
Definition: stubs.c:523
_Check_return_wat_ _CRTIMP errno_t __cdecl _wcsupr_s_l(_Inout_updates_z_(_Size) wchar_t *str, _In_ size_t size, _In_opt_ _locale_t locale)
Definition: stubs.c:897
_Check_return_wat_ _CRTIMP errno_t __cdecl _strset_s(_Inout_updates_z_(size) char *dst, _In_ size_t size, _In_ int val)
Definition: stubs.c:660
_Check_return_wat_ _CRTIMP errno_t __cdecl _strupr_s_l(_Inout_updates_z_(_Size) char *str, _In_ size_t size, _locale_t locale)
Definition: stubs.c:684
_Check_return_wat_ _CRTIMP errno_t __cdecl strncat_s(_Inout_updates_z_(size) char *dest, _In_ rsize_t size, _In_reads_or_z_(maxCount) char const *src, _In_ rsize_t maxCount)
Definition: stubs.c:786
_Check_return_wat_ _CRTIMP errno_t __cdecl _wcsnset_s(_Inout_updates_z_(_DstSizeInWords) wchar_t *dst, _In_ size_t sizeInWords, _In_ wchar_t val, _In_ size_t maxCount)
Definition: stubs.c:870
_Check_return_wat_ _CRTIMP errno_t __cdecl _strupr_s(_Inout_updates_z_(size) char *str, _In_ size_t size)
Definition: stubs.c:673
_Check_return_wat_ _CRTIMP errno_t __cdecl _strnset_s(_Inout_updates_z_(size) char *str, _In_ size_t size, _In_ int val, _In_ size_t _MaxCount)
Definition: stubs.c:578
_Check_return_wat_ _CRTIMP errno_t __cdecl _strerror_s(_Out_writes_z_(_SizeInBytes) char *buf, _In_ size_t sizeInBytes, _In_opt_z_ const char *errMsg)
Definition: stubs.c:857
_Check_return_wat_ _CRTIMP errno_t __cdecl _wcsset_s(_Inout_updates_z_(_SizeInWords) wchar_t *str, _In_ size_t sizeInWords, _In_ wchar_t val)
Definition: stubs.c:884
_Check_return_wat_ _CRTIMP errno_t __cdecl _wcslwr_s_l(_Inout_updates_z_(sizeInWords) wchar_t *str, _In_ size_t sizeInWords, _In_opt_ _locale_t locale)
Definition: stubs.c:771
_Check_return_wat_ _CRTIMP errno_t __cdecl _wcslwr_s(_Inout_updates_z_(sizeInWords) wchar_t *str, _In_ size_t sizeInWords)
Definition: stubs.c:760
_Check_return_ _Ret_maybenull_ _In_ size_t _Count
Definition: malloc.h:108
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Size
Definition: malloc.h:109
#define strcpy_s(d, l, s)
Definition: utility.h:200
#define wcsncpy_s(d, l, s, n)
Definition: utility.h:202
#define _Inout_
Definition: ms_sal.h:378
#define _Out_writes_z_(size)
Definition: ms_sal.h:352
#define _Deref_prepost_opt_z_
Definition: ms_sal.h:1424
#define _In_z_
Definition: ms_sal.h:313
#define _Check_return_
Definition: ms_sal.h:557
#define _In_opt_z_
Definition: ms_sal.h:314
#define _Inout_updates_z_(size)
Definition: ms_sal.h:389
#define _Out_writes_opt_z_(size)
Definition: ms_sal.h:353
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _Inout_opt_z_
Definition: ms_sal.h:384
_MaxCount
Definition: memory.h:72
_In_ int _Val
Definition: memory.h:91
_In_ size_t _SizeInBytes
Definition: time.h:146
_In_ size_t _SizeInWords
Definition: time.h:309
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159
int CDECL __wcserror_s(wchar_t *buffer, size_t nc, const wchar_t *str)
Definition: strerror.c:194
int CDECL _wcserror_s(wchar_t *buffer, size_t nc, int err)
Definition: strerror.c:166
char *CDECL strtok_s(char *str, const char *delim, char **ctx)
Definition: strtok_s.c:9
INT CDECL wcsncat_s(wchar_t *dst, size_t elem, const wchar_t *src, size_t count)
Definition: wcs.c:432
INT CDECL _wcsupr_s(wchar_t *str, size_t n)
Definition: wcs.c:115
wchar_t *CDECL wcstok_s(wchar_t *str, const wchar_t *delim, wchar_t **next_token)
Definition: wcstok.c:8