use a more-correct integer type, and silence 64-bit warnings as a bonus
[musl] / src / stdio / putw.c
1 #include <stdio.h>
2
3 int putw(int x, FILE *f)
4 {
5         return fwrite(&x, sizeof x, 1, f) ? x : EOF;
6 }