![]() |
![]() ![]() ![]() ![]() ![]() |
Error Handling
- errno is a system global defined in <errno.h>
- Functions:
- - char *strerror(int errnum);
- - void perror(const char *msg);
if ( (fd = open(pathname, O_RDWR)) < 0) { /* errno already set by open() */ perror("functionX(): open()"); return -1; }