summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fputc_unlocked.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/fputc_unlocked.c')
-rw-r--r--lib/libc/stdio/fputc_unlocked.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/stdio/fputc_unlocked.c b/lib/libc/stdio/fputc_unlocked.c
new file mode 100644
index 00000000..966721e7
--- /dev/null
+++ b/lib/libc/stdio/fputc_unlocked.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int fputc_unlocked(int c, FILE *stream)
+{
+ return fwrite_unlocked(&c, 1, 1, stream) ? c : EOF;
+}