xref: /aosp_15_r20/external/musl/src/stdio/putw.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #define _GNU_SOURCE
2 #include <stdio.h>
3 
putw(int x,FILE * f)4 int putw(int x, FILE *f)
5 {
6 	return (int)fwrite(&x, sizeof x, 1, f)-1;
7 }
8