Uninitialized vector entry?
[minix3.git] / lib / other / putw.c
blob807f67f4e91aea5a7dca5a0a37e3d26931c6543b
1 /*
2 * putw - write an word on a stream
3 */
4 /* $Header$ */
6 #include <stdio.h>
8 _PROTOTYPE(int putw, (int w, FILE *stream ));
10 int
11 putw(w, stream)
12 int w;
13 register FILE *stream;
15 register int cnt = sizeof(int);
16 register char *p = (char *) &w;
18 while (cnt--) {
19 putc(*p++, stream);
21 if (ferror(stream)) return EOF;
22 return w;