Sign in
gnu
/
gcc
/
refs/tags/prereleases/egcs-1.0.3-prerelease
/
.
/
libio
/
stdio
/
putw.c
blob: fd73261359cfaeb1bc9a616439ef23c12ceef639 [
file
] [
log
] [
blame
]
#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
;
}