mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 14:00:19 +02:00
Signed-off-by: Tavi <tavi@divested.dev> Co-authored-by: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
12 lines
251 B
C
12 lines
251 B
C
#include "musl.h"
|
|
|
|
/* Copied from musl libc version 1.2.5 licensed under the MIT license */
|
|
|
|
#include <wchar.h>
|
|
|
|
wchar_t *musl_wmemcpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n)
|
|
{
|
|
wchar_t *a = d;
|
|
while (n--) *d++ = *s++;
|
|
return a;
|
|
}
|