summaryrefslogtreecommitdiff
path: root/src/user/lib/libc/include/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/libc/include/stdio.h')
-rw-r--r--src/user/lib/libc/include/stdio.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/user/lib/libc/include/stdio.h b/src/user/lib/libc/include/stdio.h
new file mode 100644
index 0000000..d93ebf0
--- /dev/null
+++ b/src/user/lib/libc/include/stdio.h
@@ -0,0 +1,29 @@
+#ifndef DEF_STDIO_H
+#define DEF_STDIO_H
+
+#include <stdarg.h>
+#include <tce/syscall.h>
+
+#ifdef __cplusplus
+extern "C" { namespace libc {
+#endif
+
+extern FILE term;
+
+void print(char *s);
+void printf(char *s, ...);
+char *readln();
+
+void fprint(FILE f, char *s);
+void fprint_int(FILE f, int number);
+void fprint_hex(FILE f, unsigned number);
+void fprintf(FILE f, char *s, ...);
+
+void vfprintf(FILE f, char *s, va_list arg);
+
+#ifdef __cplusplus
+} }
+#endif
+
+
+#endif