exists.c
file_exists
Synopsis
Parameters
string file
- The name of the file to check.
Returns
int
- 1 if the file exists, otherwise 0.
Description
Checks if a file exists.
user_exists
Synopsis
Parameters
string user
- The username to check.
Returns
int
- 1 if the user data file exists, otherwise 0.
Description
Checks if a user data file exists.
cfile_exists
Synopsis
Parameters
string file
- The base name of the file to check.
Returns
int
- 1 if the compiled file exists, otherwise 0.
Description
Checks if a compiled file (.c) exists.
ofile_exists
Synopsis
Parameters
string file
- The base name of the file to check.
Returns
int
- 1 if the save file exists, otherwise 0.
Description
Checks if a save file exists.
directory_exists
Synopsis
Parameters
string dirname
- The name of the directory to check.
Returns
int
- 1 if the directory exists, otherwise 0.
Description
Checks if a directory exists.