Error handling
suggest changeSyntax
- #include <errno.h>
- int errno; /* implementation defined */
- #include <string.h>
- char *strerror(int errnum);
- #include <stdio.h>
- void perror(const char *s);
Remarks
errno is not necessarily an object with that declaration. The syntax above only shows how it might have been declared. On modern hosted implementations it is often a macro that expands to a modifiable lvalue local to the current thread. C11 requires that property when threads are supported.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents