mirror of
https://github.com/fluencelabs/musl
synced 2025-05-04 11:32:14 +00:00
17 lines
256 B
C
17 lines
256 B
C
#include <string.h>
|
|
|
|
char *__stpcpy(char *, const char *);
|
|
|
|
char *strcpy(char *dest, const char *src)
|
|
{
|
|
#if 1
|
|
__stpcpy(dest, src);
|
|
return dest;
|
|
#else
|
|
const unsigned char *s = src;
|
|
unsigned char *d = dest;
|
|
while ((*d++ = *s++));
|
|
return dest;
|
|
#endif
|
|
}
|