C语言 功能型API --------------------strcat()

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;
}
相关推荐
睡美人的小仙女1278 小时前
Threejs加载环境贴图报错Bad File Format: bad initial token
开发语言·javascript·redis
rayufo8 小时前
【工具】列出指定文件夹下所有的目录和文件
开发语言·前端·python
RANCE_atttackkk8 小时前
[Java]实现使用邮箱找回密码的功能
java·开发语言·前端·spring boot·intellij-idea·idea
缺点内向9 小时前
C#编程实战:如何为Word文档添加背景色或背景图片
开发语言·c#·自动化·word·.net
一起养小猫9 小时前
Flutter for OpenHarmony 实战:记账应用数据统计与可视化
开发语言·jvm·数据库·flutter·信息可视化·harmonyos
zhougl9969 小时前
Java 所有关键字及规范分类
java·开发语言
java1234_小锋9 小时前
Java高频面试题:MyISAM索引与InnoDB索引的区别?
java·开发语言
2501_944525549 小时前
Flutter for OpenHarmony 个人理财管理App实战 - 支出分析页面
android·开发语言·前端·javascript·flutter
彷徨而立10 小时前
【C/C++】什么是 运行时库?运行时库 /MT 和 /MD 的区别?
c语言·c++
qq_4171292510 小时前
C++中的桥接模式变体
开发语言·c++·算法