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