Versions Compared

Key

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

...

This compliant solution is categorized as a POSIX solution because it returns EINVAL and EIO , which are defined by POSIX but not by the C Standard.

...

CERT C++ Secure Coding StandardDCL09-CPP. Declare functions that return errno with a return type of errno_t
ISO/IEC 9899:2011K.3.2 "Errors <errno.h>"ISO/IEC TR 24772:2013Ignored Error Status and Unhandled Exceptions [OYB]
MISRA C:2012Directive 1.1 (required)

Bibliography

[ISO/IEC 9899:2011]Subclause K.3.2 "Errors <errno.h>"
[Open Group 2004] 

 

...