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

wchar_t *wcsncat(wchar_t *restrict destination, wchar_t const *restrict source,
		 size_t max_len)
{
	wmemcpy(destination + wcslen(destination), source,
		wcsnlen(destination, max_len));
	return destination;
}