home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / libsrc~1.z / libsrc~1 / getl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  229 b   |  16 lines

  1. #include <stdio.h>
  2.  
  3. long getl(fp)
  4. register FILE *fp;
  5. {
  6.     register long n, c;
  7.     
  8.     if((c = getw(fp)) == EOF)
  9.     return(EOF);
  10.     n = (c << 16);
  11.     if((c = getw(fp)) == EOF)
  12.     return(EOF);
  13.     n |= (c & 0xFF);
  14.     return(n);
  15. }
  16.