summaryrefslogtreecommitdiff
path: root/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'stdio.h')
-rw-r--r--stdio.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/stdio.h b/stdio.h
new file mode 100644
index 0000000..c6e4d80
--- /dev/null
+++ b/stdio.h
@@ -0,0 +1,16 @@
+#ifndef STDIO_H
+#define STDIO_H
+
+typedef struct {
+ int (*putc)(uint32_t id, char c);
+ int (*puts)(uint32_t id, const char* s);
+ uint32_t id;
+} FILE;
+
+const FILE *stdin;
+const FILE *stdout;
+const FILE *stderr;
+
+void printf(const char *__restrict__ format, ...);
+
+#endif // STDIO_H