home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Amiga
/
Jeux
/
demos
/
crystalPPC.lha
/
myfread.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-02-05
|
264b
|
13 lines
#include <clib/dos_protos.h>
long myfread(char *fname,char *ptr,long filesize)
{
BPTR file=Open(fname,MODE_OLDFILE);
if(file==0) return 1;
LONG count=Read(file,ptr,filesize);
if(count!=filesize) {Close(file);return 1;}
Close(file);
return 0;
}