summaryrefslogtreecommitdiff
path: root/src/stdio/putw.c
blob: 137832ee1b66f1fca9725bfe7d9e64026d73f02a (plain)
1
2
3
4
5
6
#include <stdio.h>

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