Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
file_exists(3)			 Allegro manual 		  file_exists(3)

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 at-
     tributes of the matching file. Example:

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

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(3), file_size_ex(3), file_time(3)

Allegro 			  version 4.4.3 		  file_exists(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=file_exists&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help