فهرست منبع

LibC: Stub out wcsftime()

Ali Mohammad Pur 3 سال پیش
والد
کامیت
687a3351c2
2فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 10 0
      Userland/Libraries/LibC/wchar.cpp
  2. 2 0
      Userland/Libraries/LibC/wchar.h

+ 10 - 0
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();
+}
 }

+ 2 - 0
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