blob: 05dbe07ee2299e81fcca7006421894f431cd68b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "memory.h"
wchar_t *wmemccpy(wchar_t *restrict destination, wchar_t const *restrict source,
wchar_t value, size_t count)
{
size_t i = 0;
for (i = 0; i < count; i++) {
destination[i] = source[i];
if (destination[i] == value)
break;
}
return &destination[i + 1];
}
|