New source files: fd.c/fd.h
[paraslash.git] / fd.c
1 #include "para.h"
2 /**
3  * check whether a file exists
4  *
5  * \param fn the file name
6  *
7  * \return Non-zero iff file exists.
8  */
9 int file_exists(const char *fn)
10 {
11         struct stat statbuf;
12
13         return !stat(fn, &statbuf);
14 }