LibC: Implement wmemset

This commit is contained in:
Tim Schumacher 2021-09-22 10:22:24 +00:00 committed by Brian Gianforcaro
commit fa1208edfd
Notes: sideshowbarker 2024-07-18 03:10:49 +09:00
3 changed files with 33 additions and 0 deletions

View file

@ -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;
}
}