NetBSD/gnu/libexec/uucp/libunix/exists.c
1993-08-04 19:30:29 +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;
}