home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff384.lzh
/
NorthC
/
Example1.LZH
/
clibs
/
UNIX
/
putw.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-30
|
510b
|
26 lines
/*
(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);
}