And I see where it mentions intmaxdiv_t in n1256. I'm not quite sure
what the inttypes.h types and functions are about so maybe stdint.h is what
I might want to work with because I do use uint32_t and have never used
inttypes.h.
7.8 Format conversion of integer types <inttypes.h>
[#1] The header <inttypes.h> includes the header <stdint.h>
and extends it with additional facilities provided by hosted
implementations.
<stdint.h> defines the types. <inttypes.h> defines the PRI* and SCN*
macros for use with *printf() and *scanf() as well as a handful of
functions for parsing intmax_t and uintmax_t values, specifically:
strtoimax strtoumax wcstoimax wcstoumax
These are analogous to strtol() etc, but for (u)intmax_t rather than for
(unsigned) long.
IOW, you only need <inttypes.h> if you need to reliably[1] convert the
types defined in <stdint.h> to/from textual representation.
[1] Using *printf/*scanf with <stdint.h> types *without* using the
PRI*/SCN* macros isn't reliable. E.g. printf("%d", (int32_t) x) will only
work if "int" is 32-bit, which isn't necessarily true.