LibC: Add stubs for wctype and iswctype

This commit is contained in:
Tim Schumacher authored and Linus Groh committed 2021-05-30 14:56:50 +01:00
1 parent d364abe4d5
commit c2b47c0676
4 files changed
+42

No files matched your search

+1
View File
@@ -56,6 +56,7 @@ set(LIBC_SOURCES
utime.cpp
utsname.cpp
wchar.cpp
wctype.cpp
)
file(GLOB AK_SOURCES CONFIGURE_DEPENDS "../../../AK/*.cpp")
+1
View File
@@ -16,6 +16,7 @@ __BEGIN_DECLS
#endif
typedef __WINT_TYPE__ wint_t;
typedef unsigned long int wctype_t;
size_t wcslen(const wchar_t*);
wchar_t* wcscpy(wchar_t*, const wchar_t*);
+24
View File
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2021, the SerenityOS developers
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Format.h>
#include <assert.h>
#include <wctype.h>
extern "C" {
wctype_t wctype(const char*)
{
dbgln("FIXME: Implement wctype()");
TODO();
}
int iswctype(wint_t, wctype_t)
{
dbgln("FIXME: Implement iswctype()");
TODO();
}
}
+16
View File
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2021, the SerenityOS developers
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <wchar.h>
__BEGIN_DECLS
wctype_t wctype(const char* name);
int iswctype(wint_t wc, wctype_t desc);
__END_DECLS