Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void perror(const char *msg);
- /* a simple way of handling errors from sys calls */
- fd = open(pathname, flags, mode);
- if (fd == -1) {
- perror("open");
- exit(EXIT_FAILURE);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement