3 ms·
The `PRIuMAX` macro in particular is not necessary. It expands to a format usable for `uintmax_t`, but you can also use `"%ju"`. Both were introduced in ISO C9
by _kst_ 11y ago
The `PRIuMAX` macro in particular is not necessary. It expands to a format usable for `uintmax_t`, but you can also use `"%ju"`. Both were introduced in ISO C99.
(Unless your `printf` implementation doesn't recognize `"%ju"`, and the `PRIuMAX` macro and friends are defined in some non-standard system-specific manner.)
- e12e 11y agoRelated, the recently posted "How to write C in 2016": https://news.ycombinator.com/item?id=10864176 https://news.ycombinator.com/item?id=10864176