mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:27:34 +00:00
LibC: Implement wmemset
This commit is contained in:
parent
485c0ef691
commit
fa1208edfd
3 changed files with 33 additions and 0 deletions
|
@ -393,4 +393,13 @@ wchar_t* wmemcpy(wchar_t* dest, const wchar_t* src, size_t n)
|
|||
|
||||
return dest;
|
||||
}
|
||||
|
||||
wchar_t* wmemset(wchar_t* wcs, wchar_t wc, size_t n)
|
||||
{
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
wcs[i] = wc;
|
||||
}
|
||||
|
||||
return wcs;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue