From 7bd1cba1e304f0cad58961ad87ea7f6370e9095e Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 30 Oct 2022 20:02:03 +0100 Subject: [PATCH] libc: Stub out bsearch() --- libs/libc/include/stdlib.h | 2 ++ libs/libc/src/stdlib.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/libs/libc/include/stdlib.h b/libs/libc/include/stdlib.h index 6a04991f..fb7f52cf 100644 --- a/libs/libc/include/stdlib.h +++ b/libs/libc/include/stdlib.h @@ -112,6 +112,8 @@ extern "C" void qsort(void*, size_t, size_t, int (*)(const void*, const void*)); // Not implemented. + void* bsearch(const void*, const void*, size_t, size_t, int (*)(const void*, const void*)); // Not implemented. + size_t mbstowcs(wchar_t* dest, const char* src, size_t n); // Not implemented. diff --git a/libs/libc/src/stdlib.cpp b/libs/libc/src/stdlib.cpp index 026c3fc3..192f8bb9 100644 --- a/libs/libc/src/stdlib.cpp +++ b/libs/libc/src/stdlib.cpp @@ -139,6 +139,11 @@ extern "C" NOT_IMPLEMENTED("qsort"); } + void* bsearch(const void*, const void*, size_t, size_t, int (*)(const void*, const void*)) + { + NOT_IMPLEMENTED("bsearch"); + } + size_t mbstowcs(wchar_t*, const char*, size_t) { NOT_IMPLEMENTED("mbstowcs");