The return value of an open() was -1 and on trying to find the error using perror() the output was "File exists".
How do I find the error or the reason for the file not opening.
Looks like
EEXIST pathname already exists and O_CREAT and O_EXCL were used.
1.4m articles
1.4m replys
5 comments
57.0k users