wmemmove.c\string\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/wmemmove.c
blob: e406f3d5c8dfc2af79b992c9f1fa6cfc80c12ec6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <wchar.h>
wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
{
	wchar_t *d0 = d;
	if ((size_t)(d-s) < n)
		while (n--) d[n] = s[n];
	else
		while (n--) *d++ = *s++;
	return d0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月03日 22:52:47 +0000

AltStyle によって変換されたページ (->オリジナル) /