home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_100
/
163_01
/
putw.c
< prev
next >
Wrap
Text File
|
1988-01-31
|
512b
|
13 lines
/*
** put a word to the stream
*/
#define FILE int
#include "streamio.h"
extern fputc();
putw(w, stream) int w; FILE *stream; {
if(fputc((w >> 8) & 255, stream) == EOF) return EOF;
if(fputc(w & 255, stream) == EOF) return EOF;
return w;
}