LibC: Stub wcstoimax and wcstoumax

This commit is contained in:
Lucas Chollet authored and Sönke Holz committed 2026-08-26 13:21:14 +02:00
1 parent a591ec9417
commit d4288b4c7f
2 files changed
+17

No files matched your search

+14
View File
@@ -4,6 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Assertions.h>
#include <AK/Format.h>
#include <AK/NumericLimits.h>
#include <errno.h>
#include <inttypes.h>
@@ -59,4 +61,16 @@ uintmax_t strtoumax(char const* str, char** endptr, int base)
return ulong_value;
}
intmax_t wcstoimax(wchar_t const*, wchar_t**, int)
{
dbgln("FIXME: Implement wcstoimax()");
TODO();
}
uintmax_t wcstoumax(wchar_t const*, wchar_t**, int)
{
dbgln("FIXME: Implement wcstoumax()");
TODO();
}
}
+3
View File
@@ -8,6 +8,7 @@
#pragma once
#include <bits/stdint.h>
#include <stddef.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
@@ -201,5 +202,7 @@ imaxdiv_t imaxdiv(intmax_t, intmax_t);
intmax_t strtoimax(char const*, char** endptr, int base);
uintmax_t strtoumax(char const*, char** endptr, int base);
intmax_t wcstoimax(wchar_t const*, wchar_t**, int);
uintmax_t wcstoumax(wchar_t const*, wchar_t**, int);
__END_DECLS