Versions Compared

Key

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

...

(1) Functions return 0 if false, and non-zero if true [1].
(2) Function failures can typically be indicated by one of the following return values: -1, or: any non-zero number.
(3) Comparison functions return 0 if the arguments are equal and non-zero otherwise. (such as the standard library function strcmp() which has a trinary return value [12]) return 0 if the arguments are equal and non-zero otherwise.

Noncompliant Code Example

...