ReactOS 0.4.16-dev-1104-ge0ef51b
corecrt_wstdio.h
Go to the documentation of this file.
1//
2// corecrt_wstdio.h
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// This file declares the wide character (wchar_t) I/O functionality, shared by
7// <stdio.h> and <wchar.h>. It also defines several core I/O types, which are
8// also shared by those two headers.
9//
10#pragma once
11
12#include <corecrt.h>
14
15#pragma warning(push)
16#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
18
20
21//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
22//
23// Stream I/O Declarations Required by this Header
24//
25//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
26#ifndef _FILE_DEFINED
27 #define _FILE_DEFINED
28 typedef struct _iobuf
29 {
32#endif
33
35
36#define stdin (__acrt_iob_func(0))
37#define stdout (__acrt_iob_func(1))
38#define stderr (__acrt_iob_func(2))
39
40#define WEOF ((wint_t)(0xFFFF))
41
42
43
44#if _CRT_FUNCTIONS_REQUIRED
45 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
46 //
47 // Wide Character Stream I/O Functions
48 //
49 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
53 );
54
57
60 _In_ wchar_t _Character,
62
65 _In_ wchar_t _Character
66 );
67
71 );
72
75
76
78 _Success_(return == _Buffer)
79 _ACRTIMP wchar_t* __cdecl fgetws(
83 );
84
87 _In_z_ wchar_t const* _Buffer,
89 );
90
92 _Success_(return != 0)
93 _ACRTIMP wchar_t* __cdecl _getws_s(
95 _In_ size_t _BufferCount
96 );
97
99 _Success_(return != 0)
100 wchar_t*, _getws_s,
101 _Always_(_Post_z_) wchar_t, _Buffer
102 )
103
106 _In_ wchar_t _Character,
108 );
109
112 _In_ wchar_t _Character
113 );
114
117 _In_z_ wchar_t const* _Buffer
118 );
119
122 _In_ wint_t _Character,
124 );
125
128 _In_ int _FileHandle,
129 _In_z_ wchar_t const* _Mode
130 );
131
134 _In_z_ wchar_t const* _FileName,
135 _In_z_ wchar_t const* _Mode
136 );
137
141 _In_z_ wchar_t const* _FileName,
142 _In_z_ wchar_t const* _Mode
143 );
144
148 _In_z_ wchar_t const* _FileName,
149 _In_z_ wchar_t const* _Mode,
150 _Inout_ FILE* _OldStream
151 );
152
156 _In_z_ wchar_t const* _FileName,
157 _In_z_ wchar_t const* _Mode,
158 _Inout_ FILE* _OldStream
159 );
160
163 _In_z_ wchar_t const* _FileName,
164 _In_z_ wchar_t const* _Mode,
165 _In_ int _ShFlag
166 );
167
169 _In_opt_z_ wchar_t const* _ErrorMessage
170 );
171
172 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
173
176 _In_z_ wchar_t const* _Command,
177 _In_z_ wchar_t const* _Mode
178 );
179
180 #endif
181
183 _In_z_ wchar_t const* _FileName
184 );
185
186 #pragma push_macro("_wtempnam")
187 #undef _wtempnam
188
191 _In_opt_z_ wchar_t const* _Directory,
192 _In_opt_z_ wchar_t const* _FilePrefix
193 );
194
195 #pragma pop_macro("_wtempnam")
196
197 _Success_(return == 0)
201 _In_ size_t _BufferCount
202 );
203
205 _Success_(return == 0)
207 _Always_(_Post_z_) wchar_t, _Buffer
208 )
209
211 _Success_(return != 0)
214 )
215
216
217
218 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
219 //
220 // I/O Synchronization and _nolock family of I/O functions
221 //
222 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
226 );
227
230 _In_ wchar_t _Character,
232 );
233
237 );
238
241 _In_ wchar_t _Character,
243 );
244
247 _In_ wint_t _Character,
249 );
250
251 #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL
252 #define fgetwc(stream) _getwc_nolock(stream)
253 #define fputwc(c, stream) _putwc_nolock(c, stream)
254 #define ungetwc(c, stream) _ungetwc_nolock(c, stream)
255 #endif
256
257
258
259 // Variadic functions are not supported in managed code under /clr
260 #ifdef _M_CEE_MIXED
261 #pragma managed(push, off)
262 #endif
263
264
265
266 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
267 //
268 // Wide Character Formatted Output Functions (Stream)
269 //
270 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
273 _In_ unsigned __int64 _Options,
278 );
279
282 _In_ unsigned __int64 _Options,
287 );
288
291 _In_ unsigned __int64 _Options,
296 );
297
300 _Inout_ FILE* const _Stream,
301 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
304 )
305 #if defined _NO_CRT_STDIO_INLINE
306 ;
307 #else
308 {
310 }
311 #endif
312
315 _Inout_ FILE* const _Stream,
316 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
318 )
319 #if defined _NO_CRT_STDIO_INLINE
320 ;
321 #else
322 {
324 }
325 #endif
326
328 _CRT_STDIO_INLINE int __CRTDECL _vfwprintf_s_l(
329 _Inout_ FILE* const _Stream,
330 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
333 )
334 #if defined _NO_CRT_STDIO_INLINE
335 ;
336 #else
337 {
339 }
340 #endif
341
342 #if __STDC_WANT_SECURE_LIB__
343
346 _Inout_ FILE* const _Stream,
347 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
349 )
350 #if defined _NO_CRT_STDIO_INLINE
351 ;
352 #else
353 {
354 return _vfwprintf_s_l(_Stream, _Format, NULL, _ArgList);
355 }
356 #endif
357
358 #endif
359
362 _Inout_ FILE* const _Stream,
363 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
366 )
367 #if defined _NO_CRT_STDIO_INLINE
368 ;
369 #else
370 {
372 }
373 #endif
374
377 _Inout_ FILE* const _Stream,
378 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
380 )
381 #if defined _NO_CRT_STDIO_INLINE
382 ;
383 #else
384 {
386 }
387 #endif
388
391 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
394 )
395 #if defined _NO_CRT_STDIO_INLINE
396 ;
397 #else
398 {
400 }
401 #endif
402
405 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
407 )
408 #if defined _NO_CRT_STDIO_INLINE
409 ;
410 #else
411 {
413 }
414 #endif
415
417 _CRT_STDIO_INLINE int __CRTDECL _vwprintf_s_l(
418 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
421 )
422 #if defined _NO_CRT_STDIO_INLINE
423 ;
424 #else
425 {
426 return _vfwprintf_s_l(stdout, _Format, _Locale, _ArgList);
427 }
428 #endif
429
430 #if __STDC_WANT_SECURE_LIB__
431
434 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
436 )
437 #if defined _NO_CRT_STDIO_INLINE
438 ;
439 #else
440 {
441 return _vfwprintf_s_l(stdout, _Format, NULL, _ArgList);
442 }
443 #endif
444
445 #endif
446
449 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
452 )
453 #if defined _NO_CRT_STDIO_INLINE
454 ;
455 #else
456 {
458 }
459 #endif
460
463 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
465 )
466 #if defined _NO_CRT_STDIO_INLINE
467 ;
468 #else
469 {
471 }
472 #endif
473
476 _Inout_ FILE* const _Stream,
477 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
479 ...)
480 #if defined _NO_CRT_STDIO_INLINE
481 ;
482 #else
483 {
484 int _Result;
489 return _Result;
490 }
491 #endif
492
495 _Inout_ FILE* const _Stream,
496 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
497 ...)
498 #if defined _NO_CRT_STDIO_INLINE
499 ;
500 #else
501 {
502 int _Result;
507 return _Result;
508 }
509 #endif
510
512 _CRT_STDIO_INLINE int __CRTDECL _fwprintf_s_l(
513 _Inout_ FILE* const _Stream,
514 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
516 ...)
517 #if defined _NO_CRT_STDIO_INLINE
518 ;
519 #else
520 {
521 int _Result;
524 _Result = _vfwprintf_s_l(_Stream, _Format, _Locale, _ArgList);
526 return _Result;
527 }
528 #endif
529
530 #if __STDC_WANT_SECURE_LIB__
531
534 _Inout_ FILE* const _Stream,
535 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
536 ...)
537 #if defined _NO_CRT_STDIO_INLINE
538 ;
539 #else
540 {
541 int _Result;
544 _Result = _vfwprintf_s_l(_Stream, _Format, NULL, _ArgList);
546 return _Result;
547 }
548 #endif
549
550 #endif
551
554 _Inout_ FILE* const _Stream,
555 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
557 ...)
558 #if defined _NO_CRT_STDIO_INLINE
559 ;
560 #else
561 {
562 int _Result;
567 return _Result;
568 }
569 #endif
570
573 _Inout_ FILE* const _Stream,
574 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
575 ...)
576 #if defined _NO_CRT_STDIO_INLINE
577 ;
578 #else
579 {
580 int _Result;
585 return _Result;
586 }
587 #endif
588
591 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
593 ...)
594 #if defined _NO_CRT_STDIO_INLINE
595 ;
596 #else
597 {
598 int _Result;
603 return _Result;
604 }
605 #endif
606
609 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
610 ...)
611 #if defined _NO_CRT_STDIO_INLINE
612 ;
613 #else
614 {
615 int _Result;
620 return _Result;
621 }
622 #endif
623
625 _CRT_STDIO_INLINE int __CRTDECL _wprintf_s_l(
626 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
628 ...)
629 #if defined _NO_CRT_STDIO_INLINE
630 ;
631 #else
632 {
633 int _Result;
636 _Result = _vfwprintf_s_l(stdout, _Format, _Locale, _ArgList);
638 return _Result;
639 }
640 #endif
641
642 #if __STDC_WANT_SECURE_LIB__
643
646 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
647 ...)
648 #if defined _NO_CRT_STDIO_INLINE
649 ;
650 #else
651 {
652 int _Result;
655 _Result = _vfwprintf_s_l(stdout, _Format, NULL, _ArgList);
657 return _Result;
658 }
659 #endif
660
661 #endif
662
665 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
667 ...)
668 #if defined _NO_CRT_STDIO_INLINE
669 ;
670 #else
671 {
672 int _Result;
677 return _Result;
678 }
679 #endif
680
683 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
684 ...)
685 #if defined _NO_CRT_STDIO_INLINE
686 ;
687 #else
688 {
689 int _Result;
694 return _Result;
695 }
696 #endif
697
698
699 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
700 //
701 // Wide Character Formatted Input Functions (Stream)
702 //
703 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
706 _In_ unsigned __int64 _Options,
711 );
712
714 _CRT_STDIO_INLINE int __CRTDECL _vfwscanf_l(
715 _Inout_ FILE* const _Stream,
716 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
719 )
720 #if defined _NO_CRT_STDIO_INLINE
721 ;
722 #else
723 {
727 }
728 #endif
729
732 _Inout_ FILE* const _Stream,
733 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
735 )
736 #if defined _NO_CRT_STDIO_INLINE
737 ;
738 #else
739 {
740 return _vfwscanf_l(_Stream, _Format, NULL, _ArgList);
741 }
742 #endif
743
745 _CRT_STDIO_INLINE int __CRTDECL _vfwscanf_s_l(
746 _Inout_ FILE* const _Stream,
747 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
750 )
751 #if defined _NO_CRT_STDIO_INLINE
752 ;
753 #else
754 {
758 }
759 #endif
760
761 #if __STDC_WANT_SECURE_LIB__
762
764 _CRT_STDIO_INLINE int __CRTDECL vfwscanf_s(
765 _Inout_ FILE* const _Stream,
766 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
768 )
769 #if defined _NO_CRT_STDIO_INLINE
770 ;
771 #else
772 {
773 return _vfwscanf_s_l(_Stream, _Format, NULL, _ArgList);
774 }
775 #endif
776
777 #endif
778
779 _CRT_STDIO_INLINE int __CRTDECL _vwscanf_l(
780 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
783 )
784 #if defined _NO_CRT_STDIO_INLINE
785 ;
786 #else
787 {
788 return _vfwscanf_l(stdin, _Format, _Locale, _ArgList);
789 }
790 #endif
791
794 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
796 )
797 #if defined _NO_CRT_STDIO_INLINE
798 ;
799 #else
800 {
801 return _vfwscanf_l(stdin, _Format, NULL, _ArgList);
802 }
803 #endif
804
806 _CRT_STDIO_INLINE int __CRTDECL _vwscanf_s_l(
807 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
810 )
811 #if defined _NO_CRT_STDIO_INLINE
812 ;
813 #else
814 {
815 return _vfwscanf_s_l(stdin, _Format, _Locale, _ArgList);
816 }
817 #endif
818
819 #if __STDC_WANT_SECURE_LIB__
820
822 _CRT_STDIO_INLINE int __CRTDECL vwscanf_s(
823 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
825 )
826 #if defined _NO_CRT_STDIO_INLINE
827 ;
828 #else
829 {
830 return _vfwscanf_s_l(stdin, _Format, NULL, _ArgList);
831 }
832 #endif
833
834 #endif
835
838 _Inout_ FILE* const _Stream,
839 _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format,
841 ...)
842 #if defined _NO_CRT_STDIO_INLINE // SCANF
843 ;
844 #else
845 {
846 int _Result;
849 _Result = _vfwscanf_l(_Stream, _Format, _Locale, _ArgList);
851 return _Result;
852 }
853 #endif
854
857 _Inout_ FILE* const _Stream,
858 _In_z_ _Scanf_format_string_ wchar_t const* const _Format,
859 ...)
860 #if defined _NO_CRT_STDIO_INLINE // SCANF
861 ;
862 #else
863 {
864 int _Result;
867 _Result = _vfwscanf_l(_Stream, _Format, NULL, _ArgList);
869 return _Result;
870 }
871 #endif
872
874 _CRT_STDIO_INLINE int __CRTDECL _fwscanf_s_l(
875 _Inout_ FILE* const _Stream,
876 _In_z_ _Scanf_s_format_string_params_(0) wchar_t const* const _Format,
878 ...)
879 #if defined _NO_CRT_STDIO_INLINE // SCANF
880 ;
881 #else
882 {
883 int _Result;
886 _Result = _vfwscanf_s_l(_Stream, _Format, _Locale, _ArgList);
888 return _Result;
889 }
890 #endif
891
892 #if __STDC_WANT_SECURE_LIB__
893
895 _CRT_STDIO_INLINE int __CRTDECL fwscanf_s(
896 _Inout_ FILE* const _Stream,
897 _In_z_ _Scanf_s_format_string_ wchar_t const* const _Format,
898 ...)
899 #if defined _NO_CRT_STDIO_INLINE // SCANF
900 ;
901 #else
902 {
903 int _Result;
906 _Result = _vfwscanf_s_l(_Stream, _Format, NULL, _ArgList);
908 return _Result;
909 }
910 #endif
911
912 #endif
913
916 _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format,
918 ...)
919 #if defined _NO_CRT_STDIO_INLINE // SCANF
920 ;
921 #else
922 {
923 int _Result;
926 _Result = _vfwscanf_l(stdin, _Format, _Locale, _ArgList);
928 return _Result;
929 }
930 #endif
931
934 _In_z_ _Scanf_format_string_ wchar_t const* const _Format,
935 ...)
936 #if defined _NO_CRT_STDIO_INLINE // SCANF
937 ;
938 #else
939 {
940 int _Result;
943 _Result = _vfwscanf_l(stdin, _Format, NULL, _ArgList);
945 return _Result;
946 }
947 #endif
948
950 _CRT_STDIO_INLINE int __CRTDECL _wscanf_s_l(
951 _In_z_ _Scanf_s_format_string_params_(0) wchar_t const* const _Format,
953 ...)
954 #if defined _NO_CRT_STDIO_INLINE // SCANF
955 ;
956 #else
957 {
958 int _Result;
961 _Result = _vfwscanf_s_l(stdin, _Format, _Locale, _ArgList);
963 return _Result;
964 }
965 #endif
966
967 #if __STDC_WANT_SECURE_LIB__
968
970 _CRT_STDIO_INLINE int __CRTDECL wscanf_s(
971 _In_z_ _Scanf_s_format_string_ wchar_t const* const _Format,
972 ...)
973 #if defined _NO_CRT_STDIO_INLINE // SCANF
974 ;
975 #else
976 {
977 int _Result;
980 _Result = _vfwscanf_s_l(stdin, _Format, NULL, _ArgList);
982 return _Result;
983 }
984 #endif
985
986 #endif
987
988
989
990 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
991 //
992 // Wide Character Formatted Output Functions (String)
993 //
994 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
995 #ifndef _CRT_NON_CONFORMING_SWPRINTFS
996 #define _SWPRINTFS_DEPRECATED _CRT_DEPRECATE_TEXT( \
997 "function has been changed to conform with the ISO C standard, " \
998 "adding an extra character count parameter. To use the traditional " \
999 "Microsoft version, set _CRT_NON_CONFORMING_SWPRINTFS.")
1000 #else
1001 #define _SWPRINTFS_DEPRECATED
1002 #endif
1003
1004 _Success_(return >= 0)
1007 _In_ unsigned __int64 _Options,
1009 _In_ size_t _BufferCount,
1013 );
1014
1015 _Success_(return >= 0)
1018 _In_ unsigned __int64 _Options,
1020 _In_ size_t _BufferCount,
1024 );
1025
1026 _Success_(return >= 0)
1029 _In_ unsigned __int64 _Options,
1031 _In_ size_t _BufferCount,
1032 _In_ size_t _MaxCount,
1036 );
1037
1038 _Success_(return >= 0)
1041 _In_ unsigned __int64 _Options,
1043 _In_ size_t _BufferCount,
1047 );
1048
1049 _Success_(return >= 0)
1053 _In_ size_t const _BufferCount,
1057 )
1058 #if defined _NO_CRT_STDIO_INLINE
1059 ;
1060 #else
1061 {
1065
1066 return _Result < 0 ? -1 : _Result;
1067 }
1068 #endif
1069
1070 _Success_(return >= 0)
1072 _CRT_STDIO_INLINE int __CRTDECL _vsnwprintf_s_l(
1074 _In_ size_t const _BufferCount,
1075 _In_ size_t const _MaxCount,
1079 )
1080 #if defined _NO_CRT_STDIO_INLINE
1081 ;
1082 #else
1083 {
1087
1088 return _Result < 0 ? -1 : _Result;
1089 }
1090 #endif
1091
1092 _Success_(return >= 0)
1094 _CRT_STDIO_INLINE int __CRTDECL _vsnwprintf_s(
1096 _In_ size_t const _BufferCount,
1097 _In_ size_t const _MaxCount,
1100 )
1101 #if defined _NO_CRT_STDIO_INLINE
1102 ;
1103 #else
1104 {
1105 return _vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList);
1106 }
1107 #endif
1108
1110 _Success_(return >= 0)
1114 _In_ size_t, _BufferCount,
1115 _In_z_ _Printf_format_string_ wchar_t const*, _Format
1116 )
1117
1118 _Success_(return >= 0)
1122 _In_ size_t _BufferCount,
1125 )
1126 #if defined _NO_CRT_STDIO_INLINE
1127 ;
1128 #else
1129 {
1131 }
1132 #endif
1133
1135 _Success_(return >= 0)
1136 int, _vsnwprintf_s,
1137 _Always_(_Post_z_) wchar_t, _Buffer,
1138 _In_ size_t, _BufferCount,
1139 _In_z_ _Printf_format_string_ wchar_t const*, _Format,
1141 )
1142
1143 _Success_(return >= 0)
1147 _In_ size_t const _BufferCount,
1151 )
1152 #if defined _NO_CRT_STDIO_INLINE
1153 ;
1154 #else
1155 {
1159
1160 return _Result < 0 ? -1 : _Result;
1161 }
1162 #endif
1163
1164 _Success_(return >= 0)
1168 _In_ size_t const _BufferCount,
1171 )
1172 #if defined _NO_CRT_STDIO_INLINE
1173 ;
1174 #else
1175 {
1177 }
1178 #endif
1179
1180 _Success_(return >= 0)
1182 _CRT_STDIO_INLINE int __CRTDECL _vswprintf_l(
1184 _In_ size_t const _BufferCount,
1188 )
1189 #if defined _NO_CRT_STDIO_INLINE
1190 ;
1191 #else
1192 {
1194 }
1195 #endif
1196
1197 _Success_(return >= 0)
1204 )
1205 #if defined _NO_CRT_STDIO_INLINE
1206 ;
1207 #else
1208 {
1209 return _vswprintf_l(_Buffer, (size_t)-1, _Format, _Locale, _ArgList);
1210 }
1211 #endif
1212
1213 _Success_(return >= 0)
1219 )
1220 #if defined _NO_CRT_STDIO_INLINE
1221 ;
1222 #else
1223 {
1224 return _vswprintf_l(_Buffer, (size_t)-1, _Format, NULL, _ArgList);
1225 }
1226 #endif
1227
1228 _Success_(return >= 0)
1232 _In_ size_t const _BufferCount,
1235 )
1236 #if defined _NO_CRT_STDIO_INLINE
1237 ;
1238 #else
1239 {
1241 }
1242 #endif
1243
1244 _Success_(return >= 0)
1246 _CRT_STDIO_INLINE int __CRTDECL _vswprintf_s_l(
1248 _In_ size_t const _BufferCount,
1252 )
1253 #if defined _NO_CRT_STDIO_INLINE
1254 ;
1255 #else
1256 {
1260
1261 return _Result < 0 ? -1 : _Result;
1262 }
1263 #endif
1264
1265 #if __STDC_WANT_SECURE_LIB__
1266
1267 _Success_(return >= 0)
1268 _CRT_STDIO_INLINE int __CRTDECL vswprintf_s(
1270 _In_ size_t const _BufferCount,
1273 )
1274 #if defined _NO_CRT_STDIO_INLINE
1275 ;
1276 #else
1277 {
1278 return _vswprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
1279 }
1280 #endif
1281
1282 #endif
1283
1285 _Success_(return >= 0)
1286 int, vswprintf_s,
1287 _Always_(_Post_z_) wchar_t, _Buffer,
1288 _In_z_ _Printf_format_string_ wchar_t const*, _Format,
1290 )
1291
1292 _Success_(return >= 0)
1296 _In_ size_t const _BufferCount,
1300 )
1301 #if defined _NO_CRT_STDIO_INLINE
1302 ;
1303 #else
1304 {
1308
1309 return _Result < 0 ? -1 : _Result;
1310 }
1311 #endif
1312
1313 _Success_(return >= 0)
1317 _In_ size_t const _BufferCount,
1320 )
1321 #if defined _NO_CRT_STDIO_INLINE
1322 ;
1323 #else
1324 {
1326 }
1327 #endif
1328
1329 _Success_(return >= 0)
1335 )
1336 #if defined _NO_CRT_STDIO_INLINE
1337 ;
1338 #else
1339 {
1343
1344 return _Result < 0 ? -1 : _Result;
1345 }
1346 #endif
1347
1348 _Success_(return >= 0)
1353 )
1354 #if defined _NO_CRT_STDIO_INLINE
1355 ;
1356 #else
1357 {
1359 }
1360 #endif
1361
1362 _Success_(return >= 0)
1368 )
1369 #if defined _NO_CRT_STDIO_INLINE
1370 ;
1371 #else
1372 {
1376
1377 return _Result < 0 ? -1 : _Result;
1378 }
1379 #endif
1380
1381 _Success_(return >= 0)
1386 )
1387 #if defined _NO_CRT_STDIO_INLINE
1388 ;
1389 #else
1390 {
1392 }
1393 #endif
1394
1395 _Success_(return >= 0)
1401 ...)
1402 #if defined _NO_CRT_STDIO_INLINE
1403 ;
1404 #else
1405 {
1406 int _Result;
1411 return _Result;
1412 }
1413 #endif
1414
1415 _Success_(return >= 0)
1417 _CRT_STDIO_INLINE int __CRTDECL _swprintf_l(
1419 _In_ size_t const _BufferCount,
1422 ...)
1423 #if defined _NO_CRT_STDIO_INLINE
1424 ;
1425 #else
1426 {
1427 int _Result;
1432 return _Result;
1433 }
1434 #endif
1435
1436 _Success_(return >= 0)
1441 ...)
1442 #if defined _NO_CRT_STDIO_INLINE
1443 ;
1444 #else
1445 {
1446 int _Result;
1451 return _Result;
1452 }
1453 #endif
1454
1455 _Success_(return >= 0)
1459 _In_ size_t const _BufferCount,
1461 ...)
1462 #if defined _NO_CRT_STDIO_INLINE
1463 ;
1464 #else
1465 {
1466 int _Result;
1471 return _Result;
1472 }
1473 #endif
1474
1476 _Success_(return >= 0)
1480 _In_z_ _Printf_format_string_params_(2) wchar_t const*, _Format,
1482 )
1483
1485 _Success_(return >= 0)
1486 int, __RETURN_POLICY_SAME, _CRT_STDIO_INLINE, __CRTDECL, _swprintf, swprintf_s, _vswprintf, vswprintf_s,
1488 _In_z_ _Printf_format_string_ wchar_t const*, _Format
1489 )
1490
1491 _Success_(return >= 0)
1493 _CRT_STDIO_INLINE int __CRTDECL _swprintf_s_l(
1495 _In_ size_t const _BufferCount,
1498 ...)
1499 #if defined _NO_CRT_STDIO_INLINE
1500 ;
1501 #else
1502 {
1503 int _Result;
1506 _Result = _vswprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);
1508 return _Result;
1509 }
1510 #endif
1511
1512 #if __STDC_WANT_SECURE_LIB__
1513
1514 _Success_(return >= 0)
1515 _CRT_STDIO_INLINE int __CRTDECL swprintf_s(
1517 _In_ size_t const _BufferCount,
1519 ...)
1520 #if defined _NO_CRT_STDIO_INLINE
1521 ;
1522 #else
1523 {
1524 int _Result;
1527 _Result = _vswprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
1529 return _Result;
1530 }
1531 #endif
1532
1533 #endif
1534
1536 _Success_(return >= 0)
1537 int, swprintf_s, vswprintf_s,
1538 _Always_(_Post_z_) wchar_t, _Buffer,
1539 _In_z_ _Printf_format_string_ wchar_t const*, _Format
1540 )
1541
1542 _Success_(return >= 0)
1546 _In_ size_t const _BufferCount,
1549 ...)
1550 #if defined _NO_CRT_STDIO_INLINE
1551 ;
1552 #else
1553 {
1554 int _Result;
1559 return _Result;
1560 }
1561 #endif
1562
1563 _Success_(return >= 0)
1567 _In_ size_t const _BufferCount,
1569 ...)
1570 #if defined _NO_CRT_STDIO_INLINE
1571 ;
1572 #else
1573 {
1574 int _Result;
1579 return _Result;
1580 }
1581 #endif
1582
1583 _Success_(return >= 0)
1587 _In_ size_t const _BufferCount,
1590 ...)
1591 #if defined _NO_CRT_STDIO_INLINE
1592 ;
1593 #else
1594 {
1595 int _Result;
1600 return _Result;
1601 }
1602 #endif
1603
1604 _Success_(return >= 0)
1608 _In_ size_t const _BufferCount,
1610 ...)
1611 #if defined _NO_CRT_STDIO_INLINE
1612 ;
1613 #else
1614 {
1615 int _Result;
1620 return _Result;
1621 }
1622 #endif
1623
1624 _Success_(return >= 0)
1628 _In_ size_t const _BufferCount,
1631 ...)
1632 #if defined _NO_CRT_STDIO_INLINE
1633 ;
1634 #else
1635 {
1636 int _Result;
1639
1641
1643 return _Result;
1644 }
1645 #endif
1646
1647 _Success_(return >= 0)
1651 _In_ size_t _BufferCount,
1653 ...)
1654 #if defined _NO_CRT_STDIO_INLINE
1655 ;
1656 #else
1657 {
1658 int _Result;
1661
1663
1665 return _Result;
1666 }
1667 #endif
1668
1669 _Success_(return >= 0)
1671 _CRT_STDIO_INLINE int __CRTDECL _snwprintf_s_l(
1673 _In_ size_t const _BufferCount,
1674 _In_ size_t const _MaxCount,
1677 ...)
1678 #if defined _NO_CRT_STDIO_INLINE
1679 ;
1680 #else
1681 {
1682 int _Result;
1687 return _Result;
1688 }
1689 #endif
1690
1691 _Success_(return >= 0)
1693 _CRT_STDIO_INLINE int __CRTDECL _snwprintf_s(
1695 _In_ size_t const _BufferCount,
1696 _In_ size_t const _MaxCount,
1698 ...)
1699 #if defined _NO_CRT_STDIO_INLINE
1700 ;
1701 #else
1702 {
1703 int _Result;
1706 _Result = _vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList);
1708 return _Result;
1709 }
1710 #endif
1711
1713 _Success_(return >= 0)
1714 int, _snwprintf_s, _vsnwprintf_s,
1715 _Always_(_Post_z_) wchar_t, _Buffer,
1716 _In_ size_t, _BufferCount,
1717 _In_z_ _Printf_format_string_ wchar_t const*, _Format
1718 )
1719
1722 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
1724 ...)
1725 #if defined _NO_CRT_STDIO_INLINE
1726 ;
1727 #else
1728 {
1729 int _Result;
1734 return _Result;
1735 }
1736 #endif
1737
1738 _Success_(return >= 0)
1742 ...)
1743 #if defined _NO_CRT_STDIO_INLINE
1744 ;
1745 #else
1746 {
1747 int _Result;
1752 return _Result;
1753 }
1754 #endif
1755
1756 _Success_(return >= 0)
1761 ...)
1762 #if defined _NO_CRT_STDIO_INLINE
1763 ;
1764 #else
1765 {
1766 int _Result;
1771 return _Result;
1772 }
1773 #endif
1774
1775 _Success_(return >= 0)
1779 ...)
1780 #if defined _NO_CRT_STDIO_INLINE
1781 ;
1782 #else
1783 {
1784 int _Result;
1789 return _Result;
1790 }
1791 #endif
1792
1793
1794 #if !defined RC_INVOKED && !defined __midl && !defined _INC_SWPRINTF_INL_
1795 // C4141: double deprecation
1796 // C6054: string may not be zero-terminated
1797 #pragma warning(push)
1798 #pragma warning(disable: 4141 6054)
1799
1800 #ifdef __cplusplus
1801
1802 extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(swprintf_s)
1803 inline int swprintf(
1804 _Pre_notnull_ _Post_z_ wchar_t* const _Buffer,
1805 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
1806 ...) throw()
1807 {
1808 int _Result;
1813 return _Result;
1814 }
1815
1816 extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(vswprintf_s)
1817 inline int __CRTDECL vswprintf(
1818 _Pre_notnull_ _Post_z_ wchar_t* const _Buffer,
1819 _In_z_ _Printf_format_string_ wchar_t const* const _Format,
1821 ) throw()
1822 {
1824 }
1825
1826 extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(_swprintf_s_l)
1827 inline int _swprintf_l(
1828 _Pre_notnull_ _Post_z_ wchar_t* const _Buffer,
1829 _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format,
1831 ...) throw()
1832 {
1833 int _Result;
1836 _Result = _vswprintf_l(_Buffer, (size_t)-1, _Format, _Locale, _ArgList);
1838 return _Result;
1839 }
1840
1841 extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(_vswprintf_s_l)
1842 inline int __CRTDECL _vswprintf_l(
1843 _Pre_notnull_ _Post_z_ wchar_t* const _Buffer,
1844 _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format,
1847 ) throw()
1848 {
1849 return _vswprintf_l(_Buffer, (size_t)-1, _Format, _Locale, _ArgList);
1850 }
1851
1852 #endif // __cplusplus
1853
1854 #pragma warning(pop)
1855 #endif // !_INC_SWPRINTF_INL_
1856
1857 #if defined _CRT_NON_CONFORMING_SWPRINTFS && !defined __cplusplus
1858 #define swprintf _swprintf
1859 #define vswprintf _vswprintf
1860 #define _swprintf_l __swprintf_l
1861 #define _vswprintf_l __vswprintf_l
1862 #endif
1863
1864
1865 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1866 //
1867 // Wide Character Formatted Input Functions (String)
1868 //
1869 //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1870 _Success_(return >= 0)
1872 _In_ unsigned __int64 _Options,
1874 _In_ size_t _BufferCount,
1878 );
1879
1880 _Success_(return >= 0)
1882 _CRT_STDIO_INLINE int __CRTDECL _vswscanf_l(
1883 _In_z_ wchar_t const* const _Buffer,
1887 )
1888 #if defined _NO_CRT_STDIO_INLINE
1889 ;
1890 #else
1891 {
1894 _Buffer, (size_t)-1, _Format, _Locale, _ArgList);
1895 }
1896 #endif
1897
1898 _Success_(return >= 0)
1901 _In_z_ wchar_t const* _Buffer,
1904 )
1905 #if defined _NO_CRT_STDIO_INLINE
1906 ;
1907 #else
1908 {
1909 return _vswscanf_l(_Buffer, _Format, NULL, _ArgList);
1910 }
1911 #endif
1912
1913 _Success_(return >= 0)
1915 _CRT_STDIO_INLINE int __CRTDECL _vswscanf_s_l(
1916 _In_z_ wchar_t const* const _Buffer,
1920 )
1921 #if defined _NO_CRT_STDIO_INLINE
1922 ;
1923 #else
1924 {
1927 _Buffer, (size_t)-1, _Format, _Locale, _ArgList);
1928 }
1929 #endif
1930
1931 #if __STDC_WANT_SECURE_LIB__
1932
1933 _Success_(return >= 0)
1935 _CRT_STDIO_INLINE int __CRTDECL vswscanf_s(
1936 _In_z_ wchar_t const* const _Buffer,
1939 )
1940 #if defined _NO_CRT_STDIO_INLINE
1941 ;
1942 #else
1943 {
1944 return _vswscanf_s_l(_Buffer, _Format, NULL, _ArgList);
1945 }
1946 #endif
1947
1948 #endif
1949
1951 _Success_(return >= 0)
1952 int, vswscanf_s,
1953 _In_z_ wchar_t, _Buffer,
1954 _In_z_ _Printf_format_string_ wchar_t const*, _Format,
1956 )
1957
1958 _Success_(return >= 0)
1960 _CRT_STDIO_INLINE int __CRTDECL _vsnwscanf_l(
1962 _In_ size_t const _BufferCount,
1966 )
1967 #if defined _NO_CRT_STDIO_INLINE
1968 ;
1969 #else
1970 {
1974 }
1975 #endif
1976
1977 _Success_(return >= 0)
1979 _CRT_STDIO_INLINE int __CRTDECL _vsnwscanf_s_l(
1981 _In_ size_t const _BufferCount,
1985 )
1986 #if defined _NO_CRT_STDIO_INLINE
1987 ;
1988 #else
1989 {
1993 }
1994 #endif
1995
1996 _Success_(return >= 0)
1999 _In_z_ wchar_t const* const _Buffer,
2002 ...)
2003 #if defined _NO_CRT_STDIO_INLINE // SCANF
2004 ;
2005 #else
2006 {
2007 int _Result;
2010 _Result = _vswscanf_l(_Buffer, _Format, _Locale, _ArgList);
2012 return _Result;
2013 }
2014 #endif
2015
2016 _Success_(return >= 0)
2019 _In_z_ wchar_t const* const _Buffer,
2021 ...)
2022 #if defined _NO_CRT_STDIO_INLINE // SCANF
2023 ;
2024 #else
2025 {
2026 int _Result;
2029 _Result = _vswscanf_l(_Buffer, _Format, NULL, _ArgList);
2031 return _Result;
2032 }
2033 #endif
2034
2035 _Success_(return >= 0)
2037 _CRT_STDIO_INLINE int __CRTDECL _swscanf_s_l(
2038 _In_z_ wchar_t const* const _Buffer,
2041 ...)
2042 #if defined _NO_CRT_STDIO_INLINE // SCANF
2043 ;
2044 #else
2045 {
2046 int _Result;
2049 _Result = _vswscanf_s_l(_Buffer, _Format, _Locale, _ArgList);
2051 return _Result;
2052 }
2053 #endif
2054
2055 #if __STDC_WANT_SECURE_LIB__
2056
2057 _Success_(return >= 0)
2059 _CRT_STDIO_INLINE int __CRTDECL swscanf_s(
2060 _In_z_ wchar_t const* const _Buffer,
2062 ...)
2063 #if defined _NO_CRT_STDIO_INLINE // SCANF
2064 ;
2065 #else
2066 {
2067 int _Result;
2070 _Result = _vswscanf_s_l(_Buffer, _Format, NULL, _ArgList);
2072 return _Result;
2073 }
2074 #endif
2075
2076 #endif
2077
2078 _Success_(return >= 0)
2082 _In_ size_t const _BufferCount,
2085 ...)
2086 #if defined _NO_CRT_STDIO_INLINE // SCANF
2087 ;
2088 #else
2089 {
2090 int _Result;
2093
2094 _Result = _vsnwscanf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);
2095
2097 return _Result;
2098 }
2099 #endif
2100
2101 _Success_(return >= 0)
2105 _In_ size_t const _BufferCount,
2107 ...)
2108 #if defined _NO_CRT_STDIO_INLINE // SCANF
2109 ;
2110 #else
2111 {
2112 int _Result;
2115
2116 _Result = _vsnwscanf_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
2117
2119 return _Result;
2120 }
2121 #endif
2122
2123 _Success_(return >= 0)
2125 _CRT_STDIO_INLINE int __CRTDECL _snwscanf_s_l(
2127 _In_ size_t const _BufferCount,
2130 ...)
2131 #if defined _NO_CRT_STDIO_INLINE // SCANF
2132 ;
2133 #else
2134 {
2135 int _Result;
2138 _Result = _vsnwscanf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);
2140 return _Result;
2141 }
2142 #endif
2143
2144 _Success_(return >= 0)
2146 _CRT_STDIO_INLINE int __CRTDECL _snwscanf_s(
2148 _In_ size_t const _BufferCount,
2150 ...)
2151 #if defined _NO_CRT_STDIO_INLINE // SCANF
2152 ;
2153 #else
2154 {
2155 int _Result;
2158 _Result = _vsnwscanf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList);
2160 return _Result;
2161 }
2162 #endif
2163
2164 #ifdef _M_CEE_MIXED
2165 #pragma managed(pop)
2166 #endif
2167#endif // _CRT_FUNCTIONS_REQUIRED
2168
2171#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
int wint_t
Definition: _apple.h:38
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
#define __int64
Definition: basetyps.h:16
return
Definition: dirsup.c:529
_Out_ int * _FileHandle
_Inout_ FILE * _Stream
#define _CRT_STDIO_INLINE
#define _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION
#define _CRT_INTERNAL_SCANF_SECURECRT
#define _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR
#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS
#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS
#define stdout
struct _iobuf FILE
_ACRTIMP_ALT FILE *__cdecl __acrt_iob_func(unsigned _Ix)
Definition: _file.cpp:22
#define stdin
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3)
Definition: corecrt.h:179
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1)
Definition: corecrt.h:185
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:186
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:178
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(_ReturnType, _FuncName, _DstType, _Dst)
Definition: corecrt.h:176
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const _In_ bool const _Inout_ __crt_cached_ptd_host &ptd throw()
Definition: cvt.cpp:119
#define NULL
Definition: types.h:112
__crt_va_start(_ArgList, _Format)
_In_z_ _Printf_format_string_ char const *const _Format
Definition: printf.c:19
_Result
Definition: printf.c:27
__crt_va_end(_ArgList)
_In_z_ _Printf_format_string_ char const *const va_list _ArgList
Definition: printf.c:23
#define swprintf
Definition: precomp.h:40
errno_t __cdecl _wfreopen_s(FILE **const result, wchar_t const *const file_name, wchar_t const *const mode, FILE *const public_stream)
Definition: freopen.cpp:121
int __cdecl fwprintf_s(FILE *file, const wchar_t *format,...)
Definition: fwprintf_s.c:16
wchar_t *__cdecl _getws_s(wchar_t *const result, size_t const result_size_in_characters)
Definition: gets.cpp:129
#define _getwc_nolock(_stm)
Definition: stdio.h:1134
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwc_nolock(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP wint_t __cdecl fputwc(_In_ wchar_t _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vfwprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
#define putwc(_c, _stm)
Definition: stdio.h:1132
#define _putwc_nolock(_c, _stm)
Definition: stdio.h:1133
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwc_nolock(_In_ wchar_t _Ch, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl _wremove(_In_z_ const wchar_t *_Filename)
_Check_return_ _CRTIMP int __cdecl swscanf(_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP wint_t __cdecl _fputwchar(_In_ wchar_t _Ch)
_CRTIMP wchar_t *__cdecl _wtmpnam(_Pre_maybenull_ _Post_z_ wchar_t *_Buffer)
_Check_return_ _CRTIMP FILE *__cdecl _wfsopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _In_ int _ShFlag)
_Check_return_ _CRTIMP FILE *__cdecl _wpopen(_In_z_ const wchar_t *_Command, _In_z_ const wchar_t *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl _snwscanf(_In_reads_(_MaxCount) _Pre_z_ const wchar_t *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP wint_t __cdecl _fgetwchar(void)
Definition: file.c:3029
_Check_return_ _CRTIMP int __cdecl fwscanf(_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
_Check_return_ _CRTIMP FILE *__cdecl _wfdopen(_In_ int _FileHandle, _In_z_ const wchar_t *_Mode)
static _Check_return_opt_ int __cdecl vswprintf(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
Definition: stdio.h:977
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_CRTIMP void __cdecl _wperror(_In_opt_z_ const wchar_t *_ErrMsg)
_Check_return_ _CRTIMP int __cdecl _scwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP wint_t __cdecl _ungetwc_nolock(_In_ wint_t _Ch, _Inout_ FILE *_File)
#define putwchar(_c)
Definition: stdio.h:1125
_Check_return_ _CRTIMP FILE *__cdecl _wfreopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _Inout_ FILE *_OldFile)
_CRTIMP int __cdecl _vsnwprintf(wchar_t *_Dest, size_t _Count, const wchar_t *_Format, va_list _Args)
_Check_return_opt_ _CRTIMP int __cdecl fwprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_CRTIMP int __cdecl _vswprintf(wchar_t *_Dest, const wchar_t *_Format, va_list _Args)
_CRTIMP int __cdecl vswscanf(const wchar_t *, const wchar_t *, va_list)
#define getwc(_stm)
Definition: stdio.h:1131
_Check_return_opt_ _CRTIMP wint_t __cdecl fgetwc(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl _putws(_In_z_ const wchar_t *_Str)
_Check_return_ _CRTIMP wchar_t *__cdecl _wtempnam(_In_opt_z_ const wchar_t *_Directory, _In_opt_z_ const wchar_t *_FilePrefix)
_CRTIMP int __cdecl vfwscanf(FILE *, const wchar_t *, va_list)
_Check_return_ _CRTIMP int __cdecl _vscwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP wint_t __cdecl ungetwc(_In_ wint_t _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fputws(_In_z_ const wchar_t *_Str, _Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl wscanf(_In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
#define getwchar()
Definition: stdio.h:1124
_CRTIMP int __cdecl vwscanf(const wchar_t *, va_list)
_Check_return_opt_ _CRTIMP int __cdecl _wprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_p(_Out_writes_z_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl _fwprintf_p_l(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_ _CRTIMP int __cdecl _scwprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _snwprintf_l(_Out_writes_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _fwprintf_p(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl _vfwprintf_l(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _vfwprintf_p(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _snwscanf_l(_In_reads_(_MaxCount) _Pre_z_ const wchar_t *_Src, _In_ size_t _MaxCount, _In_z_ _Scanf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _vfwprintf_p_l(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_p(_Out_writes_z_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _wprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _vwprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _vwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl _vscwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _wscanf_l(_In_z_ _Scanf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_ _CRTIMP int __cdecl _vscwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _swscanf_l(_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _fwprintf_l(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_p_l(_Out_writes_z_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _fwscanf_l(_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _vswprintf_c_l(_Out_writes_z_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl _vscwprintf_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_p_l(_Out_writes_z_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _swprintf_c_l(_Out_writes_z_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _vsnwprintf_l(_Out_writes_(_MaxCount) wchar_t *_DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl _scwprintf_p_l(_In_z_ _Printf_format_string_ const wchar_t *_Format, _In_opt_ _locale_t _Locale,...)
_Check_return_opt_ _CRTIMP int __cdecl _vwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl _wprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_CRTIMP int __cdecl __swprintf_l(wchar_t *_Dest, const wchar_t *_Format, _locale_t _Plocinfo,...)
_CRTIMP int __cdecl __vswprintf_l(wchar_t *_Dest, const wchar_t *_Format, _locale_t _Plocinfo, va_list _Args)
_Check_return_ _CRTIMP int __cdecl _scwprintf_p(_In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_In_ _Pre_notnull_ _Buffer
Definition: stdlib.h:644
int __cdecl __stdio_common_vswscanf(unsigned __int64 const options, wchar_t const *const buffer, size_t const buffer_count, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: input.cpp:125
int __cdecl __stdio_common_vfwscanf(unsigned __int64 const options, FILE *const stream, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: input.cpp:62
int _swprintf(wchar_t *buffer, const wchar_t *format,...)
int _snwprintf(wchar_t *buffer, size_t count, const wchar_t *format,...)
#define _Post_maybez_
Definition: ms_sal.h:1372
#define _In_reads_(s)
Definition: no_sal2.h:168
#define _Out_writes_z_(s)
Definition: no_sal2.h:180
#define _Inout_
Definition: no_sal2.h:162
#define _Always_(a)
Definition: no_sal2.h:90
#define _Success_(c)
Definition: no_sal2.h:84
#define _Outptr_result_maybenull_
Definition: no_sal2.h:266
#define _Scanf_s_format_string_params_(x)
Definition: no_sal2.h:366
#define _Out_writes_opt_(s)
Definition: no_sal2.h:226
#define _In_z_
Definition: no_sal2.h:164
#define _Scanf_format_string_params_(x)
Definition: no_sal2.h:364
#define _Pre_maybenull_
Definition: no_sal2.h:514
#define _Check_return_
Definition: no_sal2.h:60
#define _In_opt_z_
Definition: no_sal2.h:218
#define _Scanf_s_format_string_
Definition: no_sal2.h:360
#define _Post_z_
Definition: no_sal2.h:508
#define _Pre_notnull_
Definition: no_sal2.h:516
#define _Out_writes_opt_z_(s)
Definition: no_sal2.h:230
#define _Out_writes_(s)
Definition: no_sal2.h:176
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
#define _Pre_z_
Definition: no_sal2.h:506
#define _Printf_format_string_params_(x)
Definition: no_sal2.h:362
#define _Scanf_format_string_
Definition: no_sal2.h:358
#define _Printf_format_string_
Definition: no_sal2.h:356
int __cdecl __stdio_common_vswprintf(unsigned __int64 const options, wchar_t *const buffer, size_t const buffer_count, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:246
int __cdecl __stdio_common_vfwprintf_s(unsigned __int64 const options, FILE *const stream, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:88
int __cdecl __stdio_common_vfwprintf_p(unsigned __int64 const options, FILE *const stream, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:112
int __cdecl __stdio_common_vfwprintf(unsigned __int64 const options, FILE *const stream, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:64
int __cdecl __stdio_common_vswprintf_s(unsigned __int64 const options, wchar_t *const buffer, size_t const buffer_count, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:305
int __cdecl __stdio_common_vswprintf_p(unsigned __int64 const options, wchar_t *const buffer, size_t const buffer_count, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:434
int __cdecl __stdio_common_vsnwprintf_s(unsigned __int64 const options, wchar_t *const buffer, size_t const buffer_count, size_t const max_count, wchar_t const *const format, _locale_t const locale, va_list const arglist)
Definition: output.cpp:407
_MaxCount
Definition: memory.h:72
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159
_UCRT_DISABLE_CLANG_WARNINGS _CRT_BEGIN_C_HEADER _Check_return_wat_ _In_ size_t _BufferCount
Definition: conio.h:25
int CDECL _wfopen_s(FILE **pFile, const wchar_t *filename, const wchar_t *mode)
Definition: file.c:3282
void * _Placeholder
errno_t __cdecl _wtmpnam_s(wchar_t *const result_buffer, size_t const result_buffer_count)
Definition: tmpfile.cpp:457
int errno_t
Definition: corecrt.h:615
#define _Check_return_opt_
Definition: corecrt.h:224
#define _CRT_INT_MAX
Definition: corecrt.h:279
#define _DCRTIMP
Definition: corecrt.h:154
#define __RETURN_POLICY_DST(_FunctionCall)
Definition: corecrt.h:1892
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst)
Definition: corecrt.h:842
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _SecureFuncName, _VFuncName, _SecureVFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
Definition: corecrt.h:1922
#define _ACRTIMP
Definition: corecrt.h:138
#define _CRTALLOCATOR
Definition: corecrt.h:167
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureVFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:1926
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117
#define _ACRTIMP_ALT
Definition: corecrt.h:145
#define _Check_return_wat_
Definition: corecrt.h:230
#define __RETURN_POLICY_SAME(_FunctionCall)
Definition: corecrt.h:1891
#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:1968
#define _CRT_END_C_HEADER
Definition: vcruntime.h:42
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:40
#define _CRT_INSECURE_DEPRECATE(_Replacement)
Definition: vcruntime.h:99
int __cdecl vfwprintf_s(FILE *file, const wchar_t *format, va_list argptr)
Definition: vfwprintf_s.c:20
int __cdecl vwprintf_s(const wchar_t *format, va_list valist)
Definition: vwprintf_s.c:16
#define wprintf(...)
Definition: whoami.c:18
wchar_t * fgetws(wchar_t *buf, int bufsize, FILE *file)
Definition: wmain.c:22
int __cdecl wprintf_s(const wchar_t *format,...)
Definition: wprintf_s.c:16
#define __CRTDECL
Definition: yvals.h:17
#define const
Definition: zconf.h:233