mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibC: Implement wmemcpy
This commit is contained in:
parent
0ca1df4dc6
commit
485c0ef691
Notes:
sideshowbarker
2024-07-18 03:10:53 +09:00
Author: https://github.com/timschumi
Commit: 485c0ef691
Pull-request: https://github.com/SerenityOS/serenity/pull/10298
Reviewed-by: https://github.com/bgianfo ✅
3 changed files with 26 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,5 +44,6 @@ int mbsinit(const mbstate_t*);
|
|||
wchar_t* wcspbrk(const wchar_t*, const wchar_t*);
|
||||
wchar_t* wcsstr(const wchar_t*, const wchar_t*);
|
||||
wchar_t* wmemchr(const wchar_t*, wchar_t, size_t);
|
||||
wchar_t* wmemcpy(wchar_t*, const wchar_t*, size_t);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue