home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics 16,000
/
graphics-16000.iso
/
msdos
/
animutil
/
flilib
/
flisrc
/
openfli.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-02-26
|
321b
|
19 lines
#include "aafli.h"
Jfile fli_open(char *fliname, Fli_head *fh)
{
Jfile ff;
if ((ff = dos_open (fliname, DOS_READ_ONLY)) == 0)
return(AA_ERR_CANTFIND);
if (dos_read(ff, fh, (long)sizeof(*fh)) == sizeof(*fh))
{
if (fh->type == FLIH_MAGIC)
return(ff);
}
dos_close (ff);
return(AA_ERR_BADTYPE);
}