NAME
strcat, strncat - concatenate two strings
头文件
SYNOPSIS
#include <string.h>
函数原型:
char *strcat(char *dest, const char *src);
功能:
在字符串dest的末尾将字符串src拼接上去
#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[])
{
char data1[521] = "I live you lfl ";
char data2[520]="I live you too";
printf("%s\n", strcat(data1,data2));
return 0;
}