projects
/
paraslash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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
}