file_exists(3alleg4) linux man page | unix.com

Man Page: file_exists

Operating Environment: linux

Section: 3alleg4

file_exists(3alleg4)						  Allegro manual					      file_exists(3alleg4)

NAME
file_exists - Tells if a file exists. Allegro game programming library. SYNOPSIS
#include <allegro.h> int file_exists(const char *filename, int attrib, int *aret); 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! "); 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.2 file_exists(3alleg4)
Related Man Pages
exfont(3alleg4) - debian
exdata(3alleg4) - centos
exdata(3alleg4) - suse
exdata(3alleg4) - v7
exdata(3alleg4) - mojave
Similar Topics in the Unix Linux Community
Check if a file exists with certain prefix
File exists routine
Cp problems, file exists but error message
For loop without checking file exists
Check that at least one file exists in the directory.