1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:57:35 +00:00

LibC: Implement wctob

This commit is contained in:
Tim Schumacher 2021-10-10 22:28:56 +02:00 committed by Linus Groh
parent e58e50997c
commit 3336c382fb

View file

@ -319,10 +319,12 @@ int wcscoll(const wchar_t* ws1, const wchar_t* ws2)
return wcscmp(ws1, ws2); return wcscmp(ws1, ws2);
} }
int wctob(wint_t) int wctob(wint_t c)
{ {
dbgln("FIXME: Implement wctob()"); if (c > 0x7f)
TODO(); return EOF;
return static_cast<unsigned char>(c);
} }
int mbsinit(const mbstate_t* state) int mbsinit(const mbstate_t* state)