about summary refs log tree commit diff
path: root/src/stdio/putw.c
blob: a6d2429278a67f3df5061c041fc113b1fd2d350e (plain) (blame)
1
2
3
4
5
6
7
#define _GNU_SOURCE
#include <stdio.h>

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