Prev, Top Notes, Next

Errors Messages as Finesse

$ ./stupid
can't open file                        
$
  int fd = open("some/file", O_RDONLY);
if (fd < 0)
{
    fprintf(stderr, "can't open file\n");
    exit(1);
}