summaryrefslogtreecommitdiff
path: root/src/user/lib/libc/std
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/libc/std')
-rw-r--r--src/user/lib/libc/std/readline.c4
-rw-r--r--src/user/lib/libc/std/stdio.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/user/lib/libc/std/readline.c b/src/user/lib/libc/std/readline.c
index c2237b6..ab13189 100644
--- a/src/user/lib/libc/std/readline.c
+++ b/src/user/lib/libc/std/readline.c
@@ -35,6 +35,10 @@ char* freadln(FILE f) {
}
}
+char* readln() {
+ return freadln(term);
+}
+
// ** READLINE
diff --git a/src/user/lib/libc/std/stdio.c b/src/user/lib/libc/std/stdio.c
index 23ec989..196c554 100644
--- a/src/user/lib/libc/std/stdio.c
+++ b/src/user/lib/libc/std/stdio.c
@@ -4,14 +4,16 @@
#include <readline.h>
FILE term = 0;
-void print(const char *s) { fprint(term, s); }
+void print(const char *s) {
+ fprint(term, s);
+}
+
void printf(const char *format, ...) {
va_list ap;
va_start(ap, format);
vfprintf(term, format, ap);
va_end(ap);
}
-char* readln() { return freadln(term); }
void fprint(FILE f, const char *s) {
write(f, 0, strlen(s), s);