home *** CD-ROM | disk | FTP | other *** search
- /*--------------------------------------*/
- /* */
- /* 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);
- }