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