projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git]
/
src
/
string
/
strncat.c
1
#include <string.h>
2
3
char *strncat(char *d, const char *s, size_t n)
4
{
5
char *a = d;
6
d += strlen(d);
7
while (n && *s) n--, *d++ = *s++;
8
*d++ = 0;
9
return a;
10
}