try positional format strings
parent
cb3c9c0874
commit
ad287fd9a8
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
/* suppress "warning: positional arguments are not supported by ISO C" */
|
||||
#pragma GCC diagnostic ignored "-Wformat-non-iso"
|
||||
|
||||
int main(void) {
|
||||
printf("%3$3.2f %2$s %1$s\n", "One", "Two", 3.0);
|
||||
}
|
Loading…
Reference in New Issue