aboutsummaryrefslogtreecommitdiff
path: root/lib/io
diff options
context:
space:
mode:
Diffstat (limited to 'lib/io')
-rw-r--r--lib/io/io.c5
-rw-r--r--lib/io/io.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/io/io.c b/lib/io/io.c
index 57cfd05..2aefe1a 100644
--- a/lib/io/io.c
+++ b/lib/io/io.c
@@ -27,6 +27,11 @@ void wf(unsigned int fd, char *buf)
}
+void putchar(const char c)
+{
+ __wstdn(&c, 1);
+}
+
void wstdf__(const char *buf, const void **args)
{
wff__(STDOUT_FD, buf, args);
diff --git a/lib/io/io.h b/lib/io/io.h
index ac25e87..6bf0a3b 100644
--- a/lib/io/io.h
+++ b/lib/io/io.h
@@ -6,6 +6,7 @@
void wstd(const char *buf);
unsigned long rstd(char *buf, unsigned long count);
void wf(unsigned int fd, char *buf);
+void putchar(const char c);
void wstdf__(const char *buf, const void **args);
void wff__(unsigned int fd, const char *buf, const void **args);