From 7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Sun, 23 Jun 2019 07:42:16 +0800 Subject: LibPSn00b officially v0.10b, added psxsio library, better DrawSync() and VSync(), better reference manual. --- libpsn00b/include/stdio.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libpsn00b/include/stdio.h') 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 #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 -- cgit v1.2.3