1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00

LibC: Add some wchar functions

These are basically copy and pasted from the regular string version.
Also add some more multi-byte/wide conversion stub.

libarchive wanted these. There's a lot more, but we can add them
one at a time.
This commit is contained in:
Calvin Buckley 2019-10-12 22:47:25 -03:00 committed by Andreas Kling
parent 92953ba2f3
commit ef40ebbe6d
5 changed files with 59 additions and 1 deletions

View file

@ -385,6 +385,16 @@ size_t mbstowcs(wchar_t*, const char*, size_t)
ASSERT_NOT_REACHED();
}
size_t mbtowc(wchar_t*, const char*, size_t)
{
ASSERT_NOT_REACHED();
}
int wctomb(char*, wchar_t)
{
ASSERT_NOT_REACHED();
}
template<typename T, T min_value, T max_value>
static T strtol_impl(const char* nptr, char** endptr, int base)
{