logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

file_exists - Tells if a file exists. Allegro game programming library.

Description

       Checks  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:

          /* Check for a normal file. */
          if (file_exists("franken.dat", 0, NULL))
             allegro_message("It is alive!\n");

Name

       file_exists - Tells if a file exists. Allegro game programming library.

Return Value

       Returns non-zero if the file exists, or zero if it doesn't or the specified attributes mask it out.

See Also

exists(3alleg4), file_size_ex(3alleg4), file_time(3alleg4)

Allegro                                           version 4.4.3                             file_exists(3alleg4)

Synopsis

#include<allegro.h>intfile_exists(constchar*filename,intattrib,int*aret);

See Also