mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 18:15:35 +08:00
6599da043e
From-SVN: r14877
16 lines
242 B
C
16 lines
242 B
C
#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;
|
|
}
|