[cs631apue] hw2 questions
Rob Hoffmann
rhoffman at stevens.edu
Fri Sep 23 16:11:13 EDT 2011
Hi, one other question:
When opening the source file to be read I have my program currently open
it in read only mode. However if that file is a directory the program
does not throw an error and continues as normal. Only if I set the mode
to read and write will the EISDIR error be thrown. Since opening it for
writing isn't really necessary, would I lose points if I set the program
to do that for the sake of catching that error, or should I be
approaching it from a different angle?
-Rob
More information about the cs631apue
mailing list