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;
}
相关推荐
大可不必了8 小时前
03 函数定义和调用
开发语言·python
I_belong_to_jesus8 小时前
C++关于分支预测的优化1
开发语言·c++·算法
承渊政道9 小时前
【Python编程—从入门到实践】(记分与闯关:用Python+Pygame,打造越战越精彩的太空大战!)
开发语言·python·pycharm·游戏程序·pygame
爱学习的程序媛9 小时前
Python常用框架梳理
开发语言·后端·python·ai·web·后端框架·python框架
eggwyw10 小时前
Anaconda安装卸载的详细流程指南
开发语言·python
another heaven15 小时前
【C/C++ Ranges 是零开销抽象吗?拆开管道、惰性求值和编译期膨胀】
c语言·开发语言·c++
Code_Solitude15 小时前
C语言动态内存 + 柔性数组 + 数组名退化
c语言·算法·柔性数组
SomeOtherTime16 小时前
Rust 闭包语法和原理(AI回答)
开发语言·后端·rust
apcipot_rain16 小时前
C++转Java日记(10)
java·开发语言
总要学点什么17 小时前
第105篇:三维特效-流动图片墙体效果——让箭头沿墙长滚,它俩竟是同一份代码
开发语言·javascript·ecmascript·gis·webgl·材质·cesium