home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
file3hex.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
432b
|
22 lines
/*--------------------------------------*/
/* */
/* FILE3HEX(X) */
/* */
/* Returns a number from the given file */
/* descriptor that was stored with the */
/* function HEX3FILE. */
/* */
/*--------------------------------------*/
# include "stdio.h"
long file3hex(fd)
FILE *fd;
{
int a,b,c;
long d;
a=getc(fd);
b=getc(fd);
c=getc(fd);
d=(a*65536L)+(b*256L)+c;
return(d);
}