From e84a2fadd343f15293a16a3acbacd05c41e5cbea Mon Sep 17 00:00:00 2001 From: ngiddings Date: Mon, 12 Apr 2021 01:42:53 -0500 Subject: [PATCH] Added stubs for stdio.h functions putchar() and puts() are platform-dependent --- src/stdio.c | 11 +++++++++++ src/x86/putc.c | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/stdio.c create mode 100644 src/x86/putc.c diff --git a/src/stdio.c b/src/stdio.c new file mode 100644 index 0000000..4a95c3c --- /dev/null +++ b/src/stdio.c @@ -0,0 +1,11 @@ +#include "stdio.h" + +int printf(const char *format, ...) +{ + +} + +int sprintf(char *str, const char *format, ...) +{ + +} \ No newline at end of file diff --git a/src/x86/putc.c b/src/x86/putc.c new file mode 100644 index 0000000..9fdeaaf --- /dev/null +++ b/src/x86/putc.c @@ -0,0 +1,11 @@ +#include "stdio.h" + +int putchar(int c) +{ + +} + +int puts(const char *str) +{ + +} \ No newline at end of file