...
This compliant solution is categorized as a POSIX solution because it returns EINVAL and
, which are defined by POSIX but not by the C Standard.EIO
...
CERT C++ Secure Coding Standard | DCL09-CPP. Declare functions that return errno with a return type of errno_t | ||
ISO/IEC 9899:2011 | K.3.2 "Errors <errno.h>" | ISO/IEC TR 24772:2013 | Ignored Error Status and Unhandled Exceptions [OYB] |
MISRA C:2012 | Directive 1.1 (required) |
Bibliography
[ISO/IEC 9899:2011] | Subclause K.3.2 "Errors <errno.h>" |
[Open Group 2004] |
...