![]() |
![]()
| ![]() |
![]()
NAMEfile_exists - Tells if a file exists. Allegro game programming library. SYNOPSIS#include <allegro.h> int file_exists(const char *filename, int attrib, int *aret); DESCRIPTIONChecks whether a file matching the given name and attributes (see beginning of this chapter) exists. If `aret' is not NULL, it will be set to the attributes of the matching file. Example:
RETURN VALUEReturns non-zero if the file exists, or zero if it doesn't or the specified attributes mask it out. SEE ALSOexists(3), file_size_ex(3), file_time(3)
|