2 ms·
4. On GNU/Linux you can add your own %-conversions (e. g. %Y) with register_printf_function.
by lelf 7y ago
4. On GNU/Linux you can add your own %-conversions (e. g. %Y) with register_printf_function.
- saagarjha 7y agoregister_printf_function is deprecated; you should use register_printf_specifier instead.
- eqvinox 7y agoI strongly advise against using either since both are not only non-portable, but also break any compiler support for getting you warnings when you're using it wrong. The Linux kernel style suffix extensions (cf. https://www.kernel.org/doc/Documentation/printk-formats.txt https://www.kernel.org/doc/Documentation/printk-formats.txt) are much better on the latter front.