projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
new stdio; renamed from doscan.c
[unix-history]
/
usr
/
src
/
lib
/
libc
/
stdio
/
putw.c
#if defined(LIBC_SCCS) && !defined(lint)
static char
sccsid
[] =
"@(#)putw.c 5.2 (Berkeley) %G%"
;
#endif LIBC_SCCS and not lint
#include <stdio.h>
putw
(
w
,
iop
)
register
FILE
*
iop
;
{
register
char
*
p
;
register
i
;
p
= (
char
*)&
w
;
for
(
i
=
sizeof
(
int
); --
i
>=
0
;)
putc
(*
p
++,
iop
);
return
(
ferror
(
iop
));
}