XINU
strncat.c
Go to the documentation of this file.
1 
17 char *strncat(char *s1, const char *s2, int n)
18 {
19  char *os1;
20 
21  os1 = s1;
22  while (*s1++)
23  ;
24  --s1;
25  while ((*s1++ = *s2++))
26  if (--n < 0)
27  {
28  *--s1 = '\0';
29  break;
30  }
31  return (os1);
32 }
char * strncat(char *s1, const char *s2, int n)
文字列s1の末尾に文字列s2をN文字(Byte)分、結合する。
Definition: strncat.c:17