I added code to implement the -r option. -rpc
[unix-history] / usr / src / lib / libc / stdio / putw.c
CommitLineData
2ce81398
DS
1#if defined(LIBC_SCCS) && !defined(lint)
2static char sccsid[] = "@(#)putw.c 5.2 (Berkeley) %G%";
3#endif LIBC_SCCS and not lint
b8f253e8 4
516bee5b
BJ
5#include <stdio.h>
6
7putw(w, iop)
8register FILE *iop;
9{
10 register char *p;
11 register i;
12
13 p = (char *)&w;
14 for (i=sizeof(int); --i>=0;)
15 putc(*p++, iop);
16 return(ferror(iop));
17}