mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
LibC: Implement mblen()
This commit is contained in:
parent
496988de47
commit
0e990a4be8
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