home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
361_01
/
filexist.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-20
|
480b
|
24 lines
/* FileExist.c --> Taken from CUG-273 & Turbo-C Bible.
*
* Author: J.Ekwall 13 September 91
*
* Copyrighted to the Public Domain. Unlimited Distribution Authorized.
*
* User Assumes All Risks/Liabilities.
*
* Last Update: 13 September 91/EK
*/
#include <dir.h>
#include <stdek.h>
#include <gadgets.h>
int FileExists(char *FileName)
{
struct ffblk fb;
return !findfirst(FileName, &fb, 0);
}