projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
reimplement strverscmp to fix corner cases
[oweals/musl.git]
/
src
/
string
/
strncpy.c
1
#include <string.h>
2
3
char *__stpncpy(char *, const char *, size_t);
4
5
char *strncpy(char *restrict d, const char *restrict s, size_t n)
6
{
7
__stpncpy(d, s, n);
8
return d;
9
}