summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/stdio/putw.c
blob: 0ff9d7fbffb98a5d5919a3e8658678095674a3b7 (plain)
1
2
3
4
5
6
7
#define _GNU_SOURCE
#include <stdio.h>

int putw(int x, FILE *f)
{
	return (int)fwrite(&x, sizeof x, 1, f)-1;
}