ReactOS 0.4.15-dev-8339-g4028de8
stdlib_s.h
Go to the documentation of this file.
1
6#ifndef _INC_STDLIB_S
7#define _INC_STDLIB_S
8
9#include <stdlib.h>
10
11#if defined(MINGW_HAS_SECURE_API)
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
21 _dupenv_s(
22 _Outptr_result_buffer_maybenull_(*_PBufferSizeInBytes) _Outptr_result_maybenull_z_ char **_PBuffer,
23 _Out_opt_ size_t *_PBufferSizeInBytes,
24 _In_z_ const char *_VarName);
25
30 _itoa_s(
31 _In_ int _Value,
32 _Out_writes_z_(_Size) char *_DstBuf,
33 _In_ size_t _Size,
34 _In_ int _Radix);
35
42 _Out_writes_z_(_Size) char *_DstBuf,
43 _In_ size_t _Size,
44 _In_ int _Radix);
45
51 _In_ unsigned __int64 _Val,
52 _Out_writes_z_(_Size) char *_DstBuf,
53 _In_ size_t _Size,
54 _In_ int _Radix);
55
60 _ltoa_s(
61 _In_ long _Val,
62 _Out_writes_z_(_Size) char *_DstBuf,
63 _In_ size_t _Size,
64 _In_ int _Radix);
65
66 _Success_(return!=EINVAL)
72 _Out_opt_ size_t *pcchConverted,
73 _Out_writes_to_opt_(sizeInWords, *pcchConverted) wchar_t *pwcstr,
74 _In_ size_t sizeInWords,
75 _In_reads_or_z_(count) const char *pmbstr,
76 _In_ size_t count);
77
82 _mbstowcs_s_l(
83 _Out_opt_ size_t *_PtNumOfCharConverted,
84 _Out_writes_to_opt_(_SizeInWords, *_PtNumOfCharConverted) wchar_t *_DstBuf,
85 _In_ size_t _SizeInWords,
86 _In_reads_or_z_(_MaxCount) const char *_SrcBuf,
87 _In_ size_t _MaxCount,
89
94 _ultoa_s(
95 _In_ unsigned long _Val,
96 _Out_writes_z_(_Size) char *_DstBuf,
97 _In_ size_t _Size,
98 _In_ int _Radix);
99
101 _CRTIMP
102 errno_t
103 __cdecl
104 _wctomb_s_l(
105 _Out_opt_ int *_SizeConverted,
106 _Out_writes_opt_z_(_SizeInBytes) char *_MbCh,
107 _In_ size_t _SizeInBytes,
108 _In_ wchar_t _WCh,
110
111 _Success_(return!=EINVAL)
113 _CRTIMP
114 errno_t
115 __cdecl
117 _Out_opt_ size_t *pcchConverted,
118 _Out_writes_bytes_to_opt_(cjDstSize, *pcchConverted) char *pmbstrDst,
119 _In_ size_t cjDstSize,
120 _In_z_ const wchar_t *pwszSrc,
121 _In_ size_t cjMaxCount);
122
124 _CRTIMP
125 errno_t
126 __cdecl
127 _wcstombs_s_l(
128 _Out_opt_ size_t *_PtNumOfCharConverted,
129 _Out_writes_bytes_to_opt_(_DstSizeInBytes, *_PtNumOfCharConverted) char *_Dst,
130 _In_ size_t _DstSizeInBytes,
131 _In_z_ const wchar_t *_Src,
132 _In_ size_t _MaxCountInBytes,
134
135#ifndef _WSTDLIB_S_DEFINED
136#define _WSTDLIB_S_DEFINED
137
139 _CRTIMP
140 errno_t
141 __cdecl
142 _itow_s(
143 _In_ int _Val,
144 _Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
145 _In_ size_t _SizeInWords,
146 _In_ int _Radix);
147
149 _CRTIMP
150 errno_t
151 __cdecl
152 _ltow_s(
153 _In_ long _Val,
154 _Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
155 _In_ size_t _SizeInWords,
156 _In_ int _Radix);
157
159 _CRTIMP
160 errno_t
161 __cdecl
162 _ultow_s(
163 _In_ unsigned long _Val,
164 _Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
165 _In_ size_t _SizeInWords,
166 _In_ int _Radix);
167
169 _CRTIMP
170 errno_t
171 __cdecl
172 _wgetenv_s(
173 _Out_ size_t *_ReturnSize,
174 _Out_writes_opt_z_(_DstSizeInWords) wchar_t *_DstBuf,
175 _In_ size_t _DstSizeInWords,
176 _In_z_ const wchar_t *_VarName);
177
179 _CRTIMP
180 errno_t
181 __cdecl
182 _wdupenv_s(
183 _Outptr_result_buffer_maybenull_(*_BufferSizeInWords) _Outptr_result_maybenull_z_ wchar_t **_Buffer,
184 _Out_opt_ size_t *_BufferSizeInWords,
185 _In_z_ const wchar_t *_VarName);
186
188 _CRTIMP
189 errno_t
190 __cdecl
191 _i64tow_s(
193 _Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
194 _In_ size_t _SizeInWords,
195 _In_ int _Radix);
196
198 _CRTIMP
199 errno_t
200 __cdecl
202 _In_ unsigned __int64 _Val,
203 _Out_writes_z_(_SizeInWords) wchar_t *_DstBuf,
204 _In_ size_t _SizeInWords,
205 _In_ int _Radix);
206
207#endif /* _WSTDLIB_S_DEFINED */
208
209#ifndef _POSIX_
210
212 _CRTIMP
213 errno_t
214 __cdecl
215 _ecvt_s(
216 _Out_writes_z_(_Size) char *_DstBuf,
217 _In_ size_t _Size,
218 _In_ double _Val,
219 _In_ int _NumOfDights,
220 _Out_ int *_PtDec,
221 _Out_ int *_PtSign);
222
224 _CRTIMP
225 errno_t
226 __cdecl
227 _fcvt_s(
228 _Out_writes_z_(_Size) char *_DstBuf,
229 _In_ size_t _Size,
230 _In_ double _Val,
231 _In_ int _NumOfDec,
232 _Out_ int *_PtDec,
233 _Out_ int *_PtSign);
234
235 _CRTIMP
236 errno_t
237 __cdecl
238 _gcvt_s(
239 _Out_writes_z_(_Size) char *_DstBuf,
240 _In_ size_t _Size,
241 _In_ double _Val,
242 _In_ int _NumOfDigits);
243
245 _CRTIMP
246 errno_t
247 __cdecl
249 _Out_writes_z_(_Size) char *_PathResult,
250 _In_ size_t _Size,
251 _In_opt_z_ const char *_Drive,
252 _In_opt_z_ const char *_Dir,
253 _In_opt_z_ const char *_Filename,
254 _In_opt_z_ const char *_Ext);
255
257 _CRTIMP
258 errno_t
259 __cdecl
260 _putenv_s(
261 _In_z_ const char *_Name,
262 _In_z_ const char *_Value);
263
264 _CRTIMP
265 errno_t
266 __cdecl
267 _searchenv_s(
268 _In_z_ const char *_Filename,
269 _In_z_ const char *_EnvVar,
270 _Out_writes_z_(_SizeInBytes) char *_ResultPath,
271 _In_ size_t _SizeInBytes);
272
274 _CRTIMP
275 errno_t
276 __cdecl
278 _In_z_ const char *path,
279 _Out_writes_opt_z_(drive_size) char *drive,
280 _In_ size_t drive_size,
281 _Out_writes_opt_z_(dir_size) char *dir,
282 _In_ size_t dir_size,
283 _Out_writes_opt_z_(fname_size) char *fname,
284 _In_ size_t fname_size,
286 _In_ size_t ext_size);
287
288#ifndef _WSTDLIBP_S_DEFINED
289#define _WSTDLIBP_S_DEFINED
290
292 _CRTIMP
293 errno_t
294 __cdecl
296 _Out_writes_z_(_SizeInWords) wchar_t *_PathResult,
297 _In_ size_t _SizeInWords,
298 _In_opt_z_ const wchar_t *_Drive,
299 _In_opt_z_ const wchar_t *_Dir,
300 _In_opt_z_ const wchar_t *_Filename,
301 _In_opt_z_ const wchar_t *_Ext);
302
304 _CRTIMP
305 errno_t
306 __cdecl
307 _wputenv_s(
308 _In_z_ const wchar_t *_Name,
309 _In_z_ const wchar_t *_Value);
310
311 _CRTIMP
312 errno_t
313 __cdecl
314 _wsearchenv_s(
315 _In_z_ const wchar_t *_Filename,
316 _In_z_ const wchar_t *_EnvVar,
317 _Out_writes_z_(_SizeInWords) wchar_t *_ResultPath,
318 _In_ size_t _SizeInWords);
319
320 _CRTIMP
321 errno_t
322 __cdecl
324 _In_z_ const wchar_t *path,
325 _Out_writes_opt_z_(drive_size) wchar_t *drive,
326 _In_ size_t drive_size,
327 _Out_writes_opt_z_(dir_size) wchar_t *dir,
328 _In_ size_t dir_size,
329 _Out_writes_opt_z_(fname_size) wchar_t *fname,
330 _In_ size_t fname_size,
332 _In_ size_t ext_size);
333
334#endif /* _WSTDLIBP_S_DEFINED */
335
336#endif /* _POSIX_ */
337
338#ifdef __cplusplus
339}
340#endif
341
342#endif /* defined(MINGW_HAS_SECURE_API) */
343
344#endif /* _INC_STDLIB_S */
#define EINVAL
Definition: acclib.h:90
#define __cdecl
Definition: accygwin.h:79
unsigned int dir
Definition: maze.c:112
#define __int64
Definition: basetyps.h:16
int _Value
Definition: setjmp.h:214
#define _Check_return_opt_
Definition: crtdefs.h:456
#define _Check_return_wat_
Definition: crtdefs.h:462
#define _CRTIMP
Definition: crtdefs.h:72
int errno_t
Definition: crtdefs.h:374
static const WCHAR *const ext[]
Definition: module.c:53
int CDECL _gcvt_s(char *buff, size_t size, double number, int digits)
Definition: gcvt.c:47
GLuint GLuint GLsizei count
Definition: gl.h:1545
int CDECL _ui64toa_s(unsigned __int64 value, char *str, size_t size, int radix)
Definition: itoa.c:156
int CDECL _itoa_s(int value, char *str, size_t size, int radix)
Definition: itoa.c:195
int CDECL _ltoa_s(long value, char *str, size_t size, int radix)
Definition: itoa.c:255
int CDECL _i64toa_s(__int64 value, char *str, size_t size, int radix)
Definition: itoa.c:50
int CDECL _ui64tow_s(unsigned __int64 value, wchar_t *str, size_t size, int radix)
Definition: itow.c:172
int CDECL _i64tow_s(__int64 value, wchar_t *str, size_t size, int radix)
Definition: itow.c:61
int CDECL _ltow_s(long value, wchar_t *str, size_t size, int radix)
Definition: itow.c:276
int CDECL _itow_s(int value, wchar_t *str, size_t size, int radix)
Definition: itow.c:222
int CDECL _makepath_s(char *path, size_t size, const char *drive, const char *directory, const char *filename, const char *extension)
Definition: makepath_s.c:23
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Size
Definition: malloc.h:109
#define _wsplitpath_s(f, d, dl, p, pl, n, nl, e, el)
Definition: utility.h:211
#define _splitpath_s(f, d, dl, p, pl, n, nl, e, el)
Definition: utility.h:212
errno_t mbstowcs_s(size_t *cchConverted, wchar_t *widechar, size_t charoutct, const char *multibyte, size_t count)
_Check_return_wat_ _CRTIMP errno_t __cdecl wcstombs_s(_Out_opt_ size_t *pcchConverted, _Out_writes_bytes_to_opt_(cjDstSize, *pcchConverted) char *pmbsDst, _In_ size_t cjDstSize, _In_z_ const wchar_t *pwszSrc, _In_ size_t cjMaxCount)
#define _In_reads_or_z_(size)
Definition: ms_sal.h:325
#define _Out_opt_
Definition: ms_sal.h:346
#define _Success_(expr)
Definition: ms_sal.h:259
#define _Out_writes_z_(size)
Definition: ms_sal.h:352
#define _In_z_
Definition: ms_sal.h:313
#define _In_opt_z_
Definition: ms_sal.h:314
#define _Out_writes_opt_z_(size)
Definition: ms_sal.h:353
#define _Outptr_result_maybenull_z_
Definition: ms_sal.h:436
#define _Out_
Definition: ms_sal.h:345
#define _Out_writes_to_opt_(size, count)
Definition: ms_sal.h:356
#define _Out_writes_bytes_to_opt_(size, count)
Definition: ms_sal.h:361
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _Outptr_result_buffer_maybenull_(size)
Definition: ms_sal.h:464
_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
LOCAL int ext_size(UInt32_t starting_extent)
Definition: write.c:2503
int CDECL _wmakepath_s(wchar_t *path, size_t size, const wchar_t *drive, const wchar_t *directory, const wchar_t *filename, const wchar_t *extension)
Definition: wmakpath_s.c:23