SDDS ToolKit Programs and Libraries for C and Python
|
Implementation of file existence checking function.
Definition in file fexists.c.
#include "mdb.h"
Go to the source code of this file.
Functions | |
long | fexists (const char *filename) |
Checks if a file exists. | |
long fexists | ( | const char * | filename | ) |
Checks if a file exists.
This function attempts to open the specified file in read mode. If the file is successfully opened, it indicates that the file exists and the function returns 1. Otherwise, it returns 0.
filename | The name of the file to check for existence. |
Definition at line 27 of file fexists.c.