aboutsummaryrefslogtreecommitdiffstats
path: root/memory/wrawmemccpy.c
blob: ce5b0be2cb9a4e0c7f4473540560630f35101c3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "memory.h"

wchar_t *wrawmemccpy(wchar_t *restrict destination,
		     wchar_t const *restrict source, wchar_t value)
{
	for (size_t i = 0;; i++) {
		destination[i] = source[i];
		if (destination[i] == value)
			return &destination[i + 1];
	}
}