aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/putw.c
blob: a29c617a4f13e2bd2deb630051654fa61f41acfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define _GNU_SOURCE
#include <stdio.h>

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif