home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
gnu
/
libg++-2.6.2.lha
/
libg++-2.6.2
/
libio
/
stdio
/
putw.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-12
|
242b
|
16 lines
#include "libioP.h"
#include "stdio.h"
#undef putw
int
putw(w, fp)
int w;
FILE *fp;
{
_IO_size_t written;
CHECK_FILE(fp, EOF);
written = _IO_sputn(fp, (const char *)&w, sizeof(w));
return written == sizeof(w) ? 0 : EOF;
}