diff options
Diffstat (limited to 'src/stdio/putw.c')
-rw-r--r-- | src/stdio/putw.c | 6 |
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; +} |