Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added xref to DCL09

...

As you can see, calling f() will return a status indicator which is zero upon success, and a nonzero value indicating what went wrong.

A return type of errno_t is encouraged by DCL09-A. Declare functions that return an errno error code with a return type of errno_t.

While this solution is secure, it has the following drawbacks:

...