added LIBC_SCCS condition for sccs ids
[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));
}