Query: file_exists
OS: debian
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
file_exists(3alleg4) Allegro manual file_exists(3alleg4)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: /* Check for a normal file. */ if (file_exists("franken.dat", 0, NULL)) allegro_message("It is alive! ");RETURN VALUEReturns non-zero if the file exists, or zero if it doesn't or the specified attributes mask it out.SEE ALSOexists(3alleg4), file_size_ex(3alleg4), file_time(3alleg4) Allegro version 4.4.2 file_exists(3alleg4)
Related Man Pages |
---|
exfont(3alleg4) - debian |
exdata(3alleg4) - netbsd |
exdata(3alleg4) - php |
exdata(3alleg4) - linux |
exdata(3alleg4) - osx |
Similar Topics in the Unix Linux Community |
---|
IF statement to check file exists |
File Exists |
Script to check file exists |
How to check if a file exists in a directory? |
Check that at least one file exists in the directory. |