about summary refs log tree commit diff
path: root/src/stdio/putw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/putw.c')
-rw-r--r--src/stdio/putw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdio/putw.c b/src/stdio/putw.c
new file mode 100644
index 00000000..137832ee
--- /dev/null
+++ b/src/stdio/putw.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int putw(int x, FILE *f)
+{
+	return fwrite(&x, sizeof x, 1, f) ? x : EOF;
+}