Initial revision

This commit is contained in:
eck
1989-12-18 14:40:54 +00:00
parent d8486967aa
commit 94db19641a
20 changed files with 1649 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/*
* putw - write an word on a stream
*/
/* $Header$ */
#include <stdio.h>
int
putw(int w, register FILE *stream)
{
register int cnt = sizeof(int);
register char *p = (char *) &w;
while (cnt--) {
putc(*p++, stream);
}
if (ferror(stream)) return EOF;
return w;
}