Few programmers consider the issues around formatted I/O and typedefs. A user-defined integer type might be any type supported by the implementation, even a type larger than unsigned long long
, for example:
Code Block |
---|
typdeftypedef mytypedef_t uint_fast128_t; |
...
Wiki Markup |
---|
\[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]] Section 7.18.1.5, "Greatest-width integer types," and Section 7.19.6, "Formatted input/output functions" |
...
04. Integers (INT)INT14-A. Avoid performing bitwise and arithmetic operations on the same data 04. Integers (INT) INT01-A. Use rsize_t or size_t for all integer values representing the size of an object