summaryrefslogtreecommitdiff
path: root/Libraries/LibC/stdlib.cpp
diff options
context:
space:
mode:
authorCalvin Buckley <calvin@cmpct.info>2019-10-12 22:47:25 -0300
committerAndreas Kling <awesomekling@gmail.com>2019-10-13 08:44:47 +0200
commitef40ebbe6daac8c9b5d177b9d39119498724aaff (patch)
treef14feb1989b44fb42f745a13106f9dfa268d7203 /Libraries/LibC/stdlib.cpp
parent92953ba2f3f5ae3384d0fd9cbd8b08f20e93bb6e (diff)
downloadserenity-ef40ebbe6daac8c9b5d177b9d39119498724aaff.zip
LibC: Add some wchar functions
These are basically copy and pasted from the regular string version. Also add some more multi-byte/wide conversion stub. libarchive wanted these. There's a lot more, but we can add them one at a time.
Diffstat (limited to 'Libraries/LibC/stdlib.cpp')
-rw-r--r--Libraries/LibC/stdlib.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Libraries/LibC/stdlib.cpp b/Libraries/LibC/stdlib.cpp
index 342029ce1e..dcccaa27fd 100644
--- a/Libraries/LibC/stdlib.cpp
+++ b/Libraries/LibC/stdlib.cpp
@@ -385,6 +385,16 @@ size_t mbstowcs(wchar_t*, const char*, size_t)
ASSERT_NOT_REACHED();
}
+size_t mbtowc(wchar_t*, const char*, size_t)
+{
+ ASSERT_NOT_REACHED();
+}
+
+int wctomb(char*, wchar_t)
+{
+ ASSERT_NOT_REACHED();
+}
+
template<typename T, T min_value, T max_value>
static T strtol_impl(const char* nptr, char** endptr, int base)
{