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;
}
相关推荐
励志不掉头发的内向程序员42 分钟前
【从零写一个CAD 03】三个 double 值得单独一个类吗:把视图变换抽成 View
开发语言·c++·qt·学习·系统架构
PHP实战开发录1 小时前
PHP接口大整数为什么变了
开发语言·php
临床数据科学和人工智能兴趣组4 小时前
在R语言中, 使用 as.factor() 函数转换数值型变量
开发语言·r语言
不会就选b7 小时前
算法日常・每日刷题--<贪心>25
数据结构·算法
andyweike7 小时前
php笔记
开发语言·笔记·php
Circ.8 小时前
Python 调试 Litellm 本地大模型接口:模型列表与对话接口实操踩坑记录
开发语言·python
现任明教教主~10 小时前
Thinkphp站群蜘蛛池SaaS系统YanyvSEO含多用户/积分/六大引擎计费/易支付对接
java·开发语言·spring
Zhou14113610 小时前
SpringSecurity_02_授权与高级功能
开发语言·python
Cccp.12311 小时前
【leetcode】(七)前缀树和贪心算法
数据结构·leetcode·贪心算法
码匠许师傅11 小时前
【C++三方组件】cpp-httplib:一个头文件起 HTTP 服务
开发语言·c++·http