git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d3803fee99a1eeeb0ca92d7cb6cff461d8c2feb8
[reactos.git]
/
lib
/
crtdll
/
string
/
strncat.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <crtdll/string.h>
3
4
char *
5
strncat(char *dst, const char *src, size_t n)
6
{
7
if (n != 0)
8
{
9
char *d = dst;
10
const char *s = src;
11
12
while (*d != 0)
13
d++;
14
do {
15
if ((*d = *s++) == 0)
16
break;
17
d++;
18
} while (--n != 0);
19
*d = 0;
20
}
21
return dst;
22
}