Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The C99 intmax_t and uintmax_t can safely be used to perform formatted I/O with user-defined integer types. Convert signed user-defined integer types of the same signedness to intmax_t and unsigned user-defined integer types to uintmax_t and then output using the j length modifier. Similarly, input user-defined integer types of the same signedness into variables of intmax_t and or uintmax_t (whichever matches the signedness of the user-defined integer type) and then convert to the user-defined integer types using appropriate range checks.

...

Code Block
bgColor#FFcccc
mytypedef_t x;

printf("%llu", (unsigned long long) x); 

Compliant Solution (printf())

...