[S5] File exists

Estimated time: 10 minutes

Using open(2), determine if a file exists.


File exist
/*
 * @pre filename != NULL
 * @post return 0 if the file {filename} exist. -1 Otherwise.
 */
 int file_exists(char *filename)

Information

Author(s) Olivier Martin
Deadline No deadline
Submission limit No limitation
Category Tags S5, File

Tags

Sign in