3 ms·
I have also never used PRI-anything. It's a crime against readability. If I have a uint32_t which needs printing I cast it to (unsigned long) and use %lu or %l
by kazinator 5y ago
I have also never used PRI-anything. It's a crime against readability.
If I have a uint32_t which needs printing I cast it to (unsigned long) and use %lu or %lx. This requires more typing in the argument list, but keeps the format string tidy. It's important for the format string to be tidy, because that's the reason of its existence: to clearly and concisely convey the shape of what is being printed.