mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
LibC: Implement wctob
This commit is contained in:
parent
e58e50997c
commit
3336c382fb
|
@ -319,10 +319,12 @@ int wcscoll(const wchar_t* ws1, const wchar_t* ws2)
|
|||
return wcscmp(ws1, ws2);
|
||||
}
|
||||
|
||||
int wctob(wint_t)
|
||||
int wctob(wint_t c)
|
||||
{
|
||||
dbgln("FIXME: Implement wctob()");
|
||||
TODO();
|
||||
if (c > 0x7f)
|
||||
return EOF;
|
||||
|
||||
return static_cast<unsigned char>(c);
|
||||
}
|
||||
|
||||
int mbsinit(const mbstate_t* state)
|
||||
|
|
Loading…
Reference in a new issue