Hi Serge,
On 11/3/19 3:51 AM, Serge Gautherie wrote:
"...\scanf.c(204): warning C4477: 'sscanf' : format string '%hd' requires an argument of type 'short *', but variadic argument 1 has type 'int *'" "...\scanf.c(209): warning C4477: 'sscanf' : format string '%hhd' requires an argument of type 'signed char *', but variadic argument 1 has type 'int *'"
Second warning doesn't have sense for msvcrt. It doesn't support %hhd format. What version of compiler shows these errors? I would expect that format/parameters are not validated when function pointer is used.
Thanks, Piotr