projects
/
paraslash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5db30b63fd9ed62148b8d04390ec8456826337a3
[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
}