Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
ec381af90208a5675183202cf05078eac208edfb
/
.
/
src
/
string
/
strcpy.c
blob: 7675e9cea22ebd5f5c91603e3bc315639e0c5f75 [
file
] [
log
] [
blame
]
#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
}