aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpsn00b/include/stdio.h')
-rw-r--r--libpsn00b/include/stdio.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libpsn00b/include/stdio.h b/libpsn00b/include/stdio.h
index 5ee9e9b..98c69d0 100644
--- a/libpsn00b/include/stdio.h
+++ b/libpsn00b/include/stdio.h
@@ -4,7 +4,7 @@
#include <stdarg.h>
#ifndef NULL
-#define NULL (void*)0
+#define NULL 0
#endif
// BIOS seek modes
@@ -32,6 +32,14 @@ extern void printf (const char *__format, ...);
extern int getc(int __fd);
extern int putc(int __char, int __fd);
+
+#define fputc(__char, __fd) putc(__char, __fd)
+#define fgetc(__char, __fd) getc(__char, __fd)
+
+// Console TTY
+extern void gets(char *__s);
+extern void puts(const char *__s);
+extern int getchar(void);
extern void putchar(int __c);
// The following functions do not use the BIOS