scanstr function was made to replace the sscanf call with the m modifier. It is basicly a wrapper around sscanf.
The problem is, scanstr need to get the format argument by the caller. The format argument is then forwarded to sscanf. The compiler can't verify that it is a litteral string, and give a warning with clang and -Weverything flag.
scanstr function was made to replace the sscanf call with the m modifier. It is basicly a wrapper around sscanf. The problem is, scanstr need to get the format argument by the caller. The format argument is then forwarded to sscanf. The compiler can't verify that it is a litteral string, and give a warning with clang and -Weverything flag.