mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
a41a0e28c2
Not hooked up to the build yet.
12 lines
150 B
C
12 lines
150 B
C
/*
|
|
* strncat.c
|
|
*/
|
|
|
|
#include <string.h>
|
|
|
|
char *strncat(char *dst, const char *src, size_t n)
|
|
{
|
|
strncpy(strchr(dst, '\0'), src, n);
|
|
return dst;
|
|
}
|