diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-09-22 10:21:06 +0000 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-10-03 05:28:51 +0000 |
commit | 485c0ef691822873df8a6961ec099779ff19412c (patch) | |
tree | 088fd91b6af2ddf5559bd0824a71b4a7598eef00 /Userland/Libraries/LibC/wchar.cpp | |
parent | 0ca1df4dc64abab33b1b26eac81691f56ad81683 (diff) | |
download | serenity-485c0ef691822873df8a6961ec099779ff19412c.zip |
LibC: Implement wmemcpy
Diffstat (limited to 'Userland/Libraries/LibC/wchar.cpp')
-rw-r--r-- | Userland/Libraries/LibC/wchar.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/wchar.cpp b/Userland/Libraries/LibC/wchar.cpp index a3927111d3..052ab8b1cc 100644 --- a/Userland/Libraries/LibC/wchar.cpp +++ b/Userland/Libraries/LibC/wchar.cpp @@ -385,4 +385,12 @@ wchar_t* wmemchr(const wchar_t* s, wchar_t c, size_t n) return nullptr; } + +wchar_t* wmemcpy(wchar_t* dest, const wchar_t* src, size_t n) +{ + for (size_t i = 0; i < n; i++) + dest[i] = src[i]; + + return dest; +} } |