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 / putl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  243 b   |  16 lines

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