1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

LibC: Provide a dummy mbstate_t in wchar.h

POSIX just says that mbstate_t should be an "object type other than an
array type" that can hold the conversion state for converting between
(multi-byte) characters and wide characters.

Since no other information regarding the contents is given, this
apparently means that we should add whatever we need once we start
implementing that conversion.
This commit is contained in:
Tim Schumacher 2021-06-02 14:56:43 +02:00 committed by Andreas Kling
parent 8f9af4a582
commit 328818af97

View file

@ -18,6 +18,9 @@ __BEGIN_DECLS
typedef __WINT_TYPE__ wint_t;
typedef unsigned long int wctype_t;
typedef struct {
} mbstate_t;
size_t wcslen(const wchar_t*);
wchar_t* wcscpy(wchar_t*, const wchar_t*);
wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t);