| #포함하다 char *strncat(char *dest, const char *src, size_t maxlen); |
strncat 함수는 src 문자열의 일부를 dest 문자열에 추가합니다.
src에서 dest로 maxlen 문자를 추가하고 NULL도 추가합니다.
참고: strcat
#define _CRT_SECURE_NO_WARNINGS // Visual Studio
#include <stdio.h>
#include <string.h>
int main()
{
char s(100) = "C,C++,";
char s2() = "C#,Java,Python";
strncat(s, s2, 7);
printf("%s\n", s);
return 0;
}

