2 ms·
I think the big three C compilers have pragma's that you can tag printf/scanf with that will cause the compiler to verify the argument list.
by Gibbon1 6y ago
I think the big three C compilers have pragma's that you can tag printf/scanf with that will cause the compiler to verify the argument list.
- xxpor 6y ago__attribute__((format(printf, x, y))) for GCC: https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attribut... There's options other than printf too.