File: exists.c

package info (click to toggle)
uucp 1.07-19.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,964 kB
  • ctags: 3,210
  • sloc: ansic: 53,817; sh: 4,491; makefile: 232; perl: 199
file content (16 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* exists.c
   Check whether a file exists.  */

#include "uucp.h"

#include "sysdep.h"
#include "system.h"

boolean
fsysdep_file_exists (zfile)
     const char *zfile;
{
  struct stat s;

  return stat ((char *) zfile, &s) == 0;
}