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:
parent
496988de47
commit
0e990a4be8
Notes:
sideshowbarker
2024-07-18 16:55:21 +09:00
Author: https://github.com/gmta
Commit: 0e990a4be8
Pull-request: https://github.com/SerenityOS/serenity/pull/7757
2 changed files with 9 additions and 0 deletions
|
@ -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()");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue