projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
don't do 1 byte writes, buffer and flush unbuffered I/O (stderr).
[unix-history]
/
usr
/
src
/
lib
/
libc
/
stdio
/
putw.c
Commit
Line
Data
516bee5b
BJ
1
/* @(#)putw.c 4.1 (Berkeley) %G% */
2
#include <stdio.h>
3
4
putw(w, iop)
5
register FILE *iop;
6
{
7
register char *p;
8
register i;
9
10
p = (char *)&w;
11
for (i=sizeof(int); --i>=0;)
12
putc(*p++, iop);
13
return(ferror(iop));
14
}