mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
LibC: Implement wctob
This commit is contained in:
parent
e58e50997c
commit
3336c382fb
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue