home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
slfile2h.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
559b
|
25 lines
/*--------------------------------------*/
/* */
/* SLFILE2HEX(X) */
/* */
/* Reads and returns a number from a */
/* file. The argument is the file desc- */
/* riptor. */
/* */
/* Written by John Callicotte */
/* */
/*--------------------------------------*/
# include "stdio.h"
long slfile2hex(fd)
FILE *fd;
{
int a,b,c,d;
long e;
a=scram(getc(fd));
b=scram(getc(fd));
c=scram(getc(fd));
d=scram(getc(fd));
e=16777216L*a+65536L*b+256L*c+d;
return(e);
}