Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: clarified the sufficiency clause in the intro

...

Modern implementations of the C standard library should check for wrap. If the calloc() function implemented by the libraries used for a particular implementation properly handle handles unsigned integer wrapping on the multiplication of the arguments to calloc(), that is sufficient to comply with this recommendation and no further action is required.

Noncompliant Code Example

...