home *** CD-ROM | disk | FTP | other *** search
- /*
- (c) 1990 S.Hawtin.
- Permission is granted to copy this file provided
- 1) It is not used for commercial gain
- 2) This notice is included in all copies
- 3) Altered copies are marked as such
-
- No liability is accepted for the contents of the file.
-
- putw.c within Public Domain UNIX.lib
-
- */
-
- #include <types.h>
- #include <stdio.h>
-
- int
- putw(val,fptr)
- int val;
- FILE *fptr;
- {/* Put the word to the file */
- fputc((val>>8) & 0xff,fptr);
- fputc(val & 0xff,fptr);
- return(val);
- }
-