www.delorie.com/djgpp/doc/libc-2.01/libc_269.html   search  
Go to the first, previous, next, last section, table of contents.


__file_exists

Syntax

#include <unistd.h>

int __file_exists(const char *_fn);

Description

This function provides a fast way to ask if a given file exists. Unlike access(), this function does not cause other objects to get linked in with your program, so is used primarily by the startup code to keep minimum code size small.

Return Value

Zero if the file does not exist, nonzero if it does. Note that this is the opposite of what access() returns.

Example


if (__file_exists(fname))
  process_file(fname);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997