summaryrefslogtreecommitdiff
path: root/src/stdio/putchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/putchar.c')
-rw-r--r--src/stdio/putchar.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/stdio/putchar.c b/src/stdio/putchar.c
new file mode 100644
index 00000000..cb12ec0c
--- /dev/null
+++ b/src/stdio/putchar.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+
+/** write a character to stdout **/
+int putchar(int c)
+{
+ /*
+ RETURN_SUCCESS(c);
+ RETURN_FAILURE(CONSTANT(EOF));
+ */
+ return putc(c, stdout);
+}
+
+/***
+writes the character ARGUMENT(c) (converted to an TYPE(unsigned char)) to
+IDENTIFIER(stdout).
+***/
+/*
+STDC(1)
+*/