...
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:
...