1#define _GNU_SOURCE
2#include <stdio.h>
3
4int putw(int x, FILE* f) {
5    return (int)fwrite(&x, sizeof x, 1, f) - 1;
6}
7