1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibC: Implement mblen()

This commit is contained in:
Jelle Raaijmakers 2021-06-04 01:46:41 +02:00 committed by Andreas Kling
parent 496988de47
commit 0e990a4be8
Notes: sideshowbarker 2024-07-18 16:55:21 +09:00
2 changed files with 9 additions and 0 deletions

View file

@ -865,6 +865,14 @@ lldiv_t lldiv(long long numerator, long long denominator)
return result;
}
int mblen(char const* s, size_t n)
{
// FIXME: Implement locale support
if (!s)
return 0;
return (MB_CUR_MAX > n) ? n : MB_CUR_MAX;
}
size_t mbstowcs(wchar_t*, const char*, size_t)
{
dbgln("FIXME: Implement mbstowcs()");