mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
LibC: Implement mbstowcs
This commit is contained in:
parent
4893e3ef47
commit
e58e50997c
1 changed files with 3 additions and 3 deletions
|
@ -878,10 +878,10 @@ int mblen(char const* s, size_t n)
|
||||||
return (MB_CUR_MAX > n) ? n : MB_CUR_MAX;
|
return (MB_CUR_MAX > n) ? n : MB_CUR_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t mbstowcs(wchar_t*, const char*, size_t)
|
size_t mbstowcs(wchar_t* pwcs, const char* s, size_t n)
|
||||||
{
|
{
|
||||||
dbgln("FIXME: Implement mbstowcs()");
|
static mbstate_t state = {};
|
||||||
TODO();
|
return mbsrtowcs(pwcs, &s, n, &state);
|
||||||
}
|
}
|
||||||
|
|
||||||
int mbtowc(wchar_t* wch, const char* data, [[maybe_unused]] size_t data_size)
|
int mbtowc(wchar_t* wch, const char* data, [[maybe_unused]] size_t data_size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue