Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

MSVC_example_fscanf_s_and_chars_wchars

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,94 sec, absolute running time: 0,25 sec, absolute service time: 2,21 sec 
fork mode |  history  | discussion
Warning(s):
source_file.cpp(73): warning C4477: 'fscanf_s' : format string '%s' requires an argument of type 'int', but variadic argument 2 has type 'unsigned __int64'
source_file.cpp(73): note: this argument is used as a buffer size
source_file.cpp(90): warning C4477: 'fwscanf_s' : format string '%s' requires an argument of type 'int', but variadic argument 2 has type 'unsigned __int64'
source_file.cpp(90): note: this argument is used as a buffer size
source_file.cpp(138): warning C4473: 'fscanf_s' : not enough arguments passed for format string
source_file.cpp(138): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
source_file.cpp(138): note: the missing variadic argument 2 is required by format string '%c'
source_file.cpp(138): note: this argument is used as a buffer size
source_file.cpp(141): warning C4473: 'fscanf_s' : not enough arguments passed for format string
source_file.cpp(141): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
source_file.cpp(141): note: the missing variadic argument 2 is required by format string '%C'
source_file.cpp(141): note: this argument is used as a buffer size
source_file.cpp(144): warning C4477: 'fscanf_s' : format string '%s' requires an argument of type 'int', but variadic argument 2 has type 'unsigned __int64'
source_file.cpp(144): note: this argument is used as a buffer size
source_file.cpp(147): warning C4477: 'fscanf_s' : format string '%S' requires an argument of type 'int', but variadic argument 2 has type 'unsigned __int64'
source_file.cpp(147): note: this argument is used as a buffer size
source_file.cpp(168): warning C4473: 'fwscanf_s' : not enough arguments passed for format string
source_file.cpp(168): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
source_file.cpp(168): note: the missing variadic argument 2 is required by format string '%C'
source_file.cpp(168): note: this argument is used as a buffer size
source_file.cpp(171): warning C4473: 'fwscanf_s' : not enough arguments passed for format string
source_file.cpp(171): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
source_file.cpp(171): note: the missing variadic argument 2 is required by format string '%c'
source_file.cpp(171): note: this argument is used as a buffer size
source_file.cpp(174): warning C4477: 'fwscanf_s' : format string '%S' requires an argument of type 'int', but variadic argument 2 has type 'unsigned __int64'
source_file.cpp(174): note: this argument is used as a buffer size
source_file.cpp(177): warning C4477: 'fwscanf_s' : format string '%s' requires an argument of type 'int', but variadic argument 2 has type 'unsigned __int64'
source_file.cpp(177): note: this argument is used as a buffer size
/LIBPATH:C:\boost_1_60_0\stage\lib 
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
Hello, world!
====write_to_file====
fopen_s for create new file: FAILED!!! error = 13
====read_from_file_as_string====
fopen_s for read from file: FAILED!!! error = 2
====read_from_file_native====
fopen_s for read from file: FAILED!!! error = 2