ack/lang/cem/libcc/stdio/putw.c

17 lines
220 B
C
Raw Normal View History

1994-06-24 14:02:31 +00:00
/* $Id$ */
1987-01-27 15:57:55 +00:00
#include <stdio.h>
int
putw(w, iop)
register FILE *iop;
{
register int cnt = sizeof(int);
register char *p = (char *) &w;
while (cnt--) {
putc(*p++, iop);
}
if (ferror(iop)) return EOF;
return w;
}