Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
string
/
strncat.c
blob: 01ca2a2317c6f29ecc1289e94b76b72c69698ea8 [
file
] [
log
] [
blame
]
#include
<string.h>
char
*
strncat
(
char
*
restrict d
,
const
char
*
restrict s
,
size_t
n
)
{
char
*
a
=
d
;
d
+=
strlen
(
d
);
while
(
n
&&
*
s
)
n
--,
*
d
++
=
*
s
++;
*
d
++
=
0
;
return
a
;
}