home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
273_01
/
filexist.cc
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-09-23
|
242 b
|
13 lines
#include <dir.h>
file_exist(char *fn)
/* Check to see of a Find exists.
RETURN 1 if exist 0 if not.
*/
{
struct ffblk fb;
int rc;
rc=findfirst(fn,&fb,0);
if(rc==0) return(1);
return(0);
}