strcpy.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/strcpy.c
blob: f7e3ba38c16e3e69395f85dcdd6c23bb20797a6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <string.h>
char *__stpcpy(char *, const char *);
char *strcpy(char *restrict dest, const char *restrict src)
{
#if 1
	__stpcpy(dest, src);
	return dest;
#else
	const unsigned char *s = src;
	unsigned char *d = dest;
	while ((*d++ = *s++));
	return dest;
#endif
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月28日 04:30:00 +0000

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