2 ms·
POSIX printf() actually supports positional arguments: https://www.godbolt.org/z/xG15M5 https://www.godbolt.org/z/xG15M5 Both clang and gcc support this, but
by flohofwoe 6y ago
POSIX printf() actually supports positional arguments:
https://www.godbolt.org/z/xG15M5 https://www.godbolt.org/z/xG15M5
Both clang and gcc support this, but unfortunately not the Microsoft C compiler.
PS: actually, it does, just not in the normal printf call: https://docs.microsoft.com/en-us/cpp/c-runtime-library/printf-p-positional-parameters?view=vs-2019 https://docs.microsoft.com/en-us/cpp/c-runtime-library/print...
- andralex 6y agoD also supports POSIX positional arguments: https://dlang.org/library/std/format/formatted_write.html https://dlang.org/library/std/format/formatted_write.html