freebsd-dev/gnu/libexec/uucp/libunix/exists.c
1993-08-05 18:28:27 +00:00

17 lines
232 B
C

/* 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;
}