GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FILE_EXISTS (3)

NAME

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

CONTENTS

Synopsis
Description
See Also

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!\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)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro FILE_EXISTS (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.