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;
}
相关推荐
Zwawa1 小时前
编译器工具链:GCC、Clang、MSVC、ICC、armclang
c语言·嵌入式·编译器
@大迁世界2 小时前
告别 Go,拥抱 Rust
开发语言·golang·rust
SEO_juper2 小时前
Node.js 重定向链检测工具:301 跳了几跳、有没有成环,一次看清
xml·开发语言·python·node.js·json·bash
学逆向的2 小时前
C 指针常量与常量指针
c语言·开发语言·网络安全
水饺编程2 小时前
第2章:Linux 基础,exit 命令
linux·c语言·汇编
低调滴开发3 小时前
3 行代码写崩一个函数?切片才是 Rust 字符串处理的正确姿势
开发语言·后端·rust
CodeYp20193 小时前
第15讲:二叉搜索树
开发语言·c++·二叉搜索树
猫猫.1533 小时前
HashTable、HashMap、ConcurrentHashMap 核心区别总结
java·开发语言·java-ee
shehuiyuelaiyuehao3 小时前
算法56,重排链表
数据结构·算法·链表
乌暮4 小时前
综合案例:宠物电商系统
java·开发语言·spring·mvc·restful·1024程序员节