2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
11 #if defined(MINGW_HAS_SECURE_API)
22 _Outptr_result_buffer_maybenull_(*_PBufferSizeInBytes
) _Outptr_result_maybenull_z_
char **_PBuffer
,
23 _Out_opt_
size_t *_PBufferSizeInBytes
,
24 _In_z_
const char *_VarName
);
32 _Out_writes_z_(_Size
) char *_DstBuf
,
42 _Out_writes_z_(_Size
) char *_DstBuf
,
51 _In_
unsigned __int64 _Val
,
52 _Out_writes_z_(_Size
) char *_DstBuf
,
62 _Out_writes_z_(_Size
) char *_DstBuf
,
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
,
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
,
88 _In_opt_ _locale_t _Locale
);
95 _In_
unsigned long _Val
,
96 _Out_writes_z_(_Size
) char *_DstBuf
,
105 _Out_opt_
int *_SizeConverted
,
106 _Out_writes_opt_z_(_SizeInBytes
) char *_MbCh
,
107 _In_
size_t _SizeInBytes
,
109 _In_opt_ _locale_t _Locale
);
111 _Success_(return!=EINVAL
)
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
);
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
,
133 _In_opt_ _locale_t _Locale
);
135 #ifndef _WSTDLIB_S_DEFINED
136 #define _WSTDLIB_S_DEFINED
144 _Out_writes_z_(_SizeInWords
) wchar_t *_DstBuf
,
145 _In_
size_t _SizeInWords
,
154 _Out_writes_z_(_SizeInWords
) wchar_t *_DstBuf
,
155 _In_
size_t _SizeInWords
,
163 _In_
unsigned long _Val
,
164 _Out_writes_z_(_SizeInWords
) wchar_t *_DstBuf
,
165 _In_
size_t _SizeInWords
,
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
);
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
);
193 _Out_writes_z_(_SizeInWords
) wchar_t *_DstBuf
,
194 _In_
size_t _SizeInWords
,
202 _In_
unsigned __int64 _Val
,
203 _Out_writes_z_(_SizeInWords
) wchar_t *_DstBuf
,
204 _In_
size_t _SizeInWords
,
207 #endif /* _WSTDLIB_S_DEFINED */
216 _Out_writes_z_(_Size
) char *_DstBuf
,
219 _In_
int _NumOfDights
,
228 _Out_writes_z_(_Size
) char *_DstBuf
,
239 _Out_writes_z_(_Size
) char *_DstBuf
,
242 _In_
int _NumOfDigits
);
249 _Out_writes_z_(_Size
) char *_PathResult
,
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
);
261 _In_z_
const char *_Name
,
262 _In_z_
const char *_Value
);
268 _In_z_
const char *_Filename
,
269 _In_z_
const char *_EnvVar
,
270 _Out_writes_z_(_SizeInBytes
) char *_ResultPath
,
271 _In_
size_t _SizeInBytes
);
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
,
285 _Out_writes_opt_z_(ext_size
) char *ext
,
286 _In_
size_t ext_size
);
288 #ifndef _WSTDLIBP_S_DEFINED
289 #define _WSTDLIBP_S_DEFINED
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
);
308 _In_z_
const wchar_t *_Name
,
309 _In_z_
const wchar_t *_Value
);
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
);
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
,
331 _Out_writes_opt_z_(ext_size
) wchar_t *ext
,
332 _In_
size_t ext_size
);
334 #endif /* _WSTDLIBP_S_DEFINED */
342 #endif /* defined(MINGW_HAS_SECURE_API) */
344 #endif /* _INC_STDLIB_S */