From bd8825231a11d404405e0239c900124d6f69323f Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 23 Oct 2022 11:16:36 +0200 Subject: [PATCH] libc: Stub out sscanf() --- libs/libc/include/stdio.h | 2 ++ libs/libc/src/stdio.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/libs/libc/include/stdio.h b/libs/libc/include/stdio.h index 853fd4df..eecd068b 100644 --- a/libs/libc/include/stdio.h +++ b/libs/libc/include/stdio.h @@ -138,6 +138,8 @@ extern "C" /* Writes at most max bytes of formatted output according to the string format to the string str. */ int vsnprintf(char* str, size_t max, const char* format, va_list ap); + int sscanf(const char*, const char*, ...); // Not implemented. + /* Writes the string str followed by a trailing newline to stdout. */ int puts(const char* str); diff --git a/libs/libc/src/stdio.cpp b/libs/libc/src/stdio.cpp index 6ead35d4..3f421801 100644 --- a/libs/libc/src/stdio.cpp +++ b/libs/libc/src/stdio.cpp @@ -53,4 +53,9 @@ extern "C" { NOT_IMPLEMENTED("remove"); } + + int sscanf(const char*, const char*, ...) + { + NOT_IMPLEMENTED("sscanf"); + } } \ No newline at end of file