Comment 3 for bug 1950300

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

I hadn't known about '%i' with scanf().

Are you (Dirk) going to create a github PR so that new test case is run through CI?

Have you investigated portability? Is '%i' mentioned in the C89 spec.?

A quick search finds that '%i' is documented by MS [1]. And [2] claims it is "... supported by the latest C and C++ standards (both published in 2011) ...". So this looks fine going forward.

[1] https://docs.microsoft.com/en-us/cpp/c-runtime-library/scanf-type-field-characters?view=msvc-170
[2] https://www.cplusplus.com/reference/cstdio/scanf/?kw=scanf