From 687a3351c20e2e8e09b7f96755a36c2027f0c0bb Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sun, 19 Dec 2021 23:31:35 +0330 Subject: [PATCH] LibC: Stub out wcsftime() --- Userland/Libraries/LibC/wchar.cpp | 10 ++++++++++ Userland/Libraries/LibC/wchar.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/Userland/Libraries/LibC/wchar.cpp b/Userland/Libraries/LibC/wchar.cpp index 801b7d6d72..73a9833f3f 100644 --- a/Userland/Libraries/LibC/wchar.cpp +++ b/Userland/Libraries/LibC/wchar.cpp @@ -646,4 +646,14 @@ size_t wcsspn(wchar_t const* wcs, wchar_t const* accept) } while (rc != 0); } } + +size_t wcsftime(wchar_t* __restrict wcs, size_t maxsize, wchar_t const* __restrict format, const struct tm* __restrict timeptr) +{ + (void)wcs; + (void)maxsize; + (void)format; + (void)timeptr; + dbgln("FIXME: Implement wcsftime()"); + TODO(); +} } diff --git a/Userland/Libraries/LibC/wchar.h b/Userland/Libraries/LibC/wchar.h index 1848204609..0562b965ac 100644 --- a/Userland/Libraries/LibC/wchar.h +++ b/Userland/Libraries/LibC/wchar.h @@ -95,4 +95,6 @@ int vfwscanf(FILE* __restrict stream, const wchar_t* __restrict format, va_list int vswscanf(const wchar_t* __restrict ws, const wchar_t* __restrict format, va_list arg); int vwscanf(const wchar_t* __restrict format, va_list arg); +size_t wcsftime(wchar_t* __restrict wcs, size_t maxsize, const wchar_t* __restrict format, const struct tm* __restrict timeptr); + __END_DECLS