home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / IO / PUTW.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  194 b   |  9 lines

  1. /* putw.c (emx+gcc) -- Copyright (c) 1992-1993 by Kai Uwe Rommel */
  2.  
  3. #include <stdio.h>
  4.  
  5. int putw (int x, FILE *stream)
  6. {
  7.   return (fwrite (&x, sizeof (x), 1, stream) == 1 ? x : EOF);
  8. }
  9.