Versions Compared

Key

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

When writing a library, each exposed function should perform a validity check on its parameters. Validity checks allow the library to survive at least some forms of improper usage, enabling an application using the library to likewise survive, and often simplifies the task of determining the condition that caused the illegal invalid parameter.

Non-Compliant Coding Example

...