c语言头文件cstring,头文件 <string.h> <cstring> <string> 区别

c语言头文件cstring,头文件 <string.h> <cstring> <string> 区别/**@filecstring*ThisisaStandardC++Libraryfile.Youshould@c\#includethisfile*inyourprograms,ratherthananyofthe@a*.himplementationfiles.**ThisistheC++versionoftheSt…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

/** @file cstring

* This is a Standard C++ Library file. You should @c \#include this file

* in your programs, rather than any of the @a *.h implementation files.

*

* This is the C++ version of the Standard C Library header @c string.h,

* and its contents are (mostly) the same as that header, but are all

* contained in the namespace @c std (except for names which are defined

* as macros in C).*/

//

//ISO C++ 14882: 20.4.6 C library//

#pragma GCC system_header#include#include#ifndef _GLIBCXX_CSTRING#define _GLIBCXX_CSTRING 1

//Get rid of those macros defined in in lieu of real functions.

#undef memchr

#undef memcmp

#undef memcpy

#undef memmove

#undef memset

#undef strcat

#undef strchr

#undef strcmp

#undef strcoll

#undef strcpy

#undef strcspn

#undef strerror

#undef strlen

#undef strncat

#undef strncmp

#undef strncpy

#undef strpbrk

#undef strrchr

#undef strspn

#undef strstr

#undef strtok

#undef strxfrm

namespace std _GLIBCXX_VISIBILITY(default)

{

_GLIBCXX_BEGIN_NAMESPACE_VERSIONusing::memchr;using::memcmp;using::memcpy;using::memmove;using::memset;using::strcat;using::strcmp;using::strcoll;using::strcpy;using::strcspn;using::strerror;using::strlen;using::strncat;using::strncmp;using::strncpy;using::strspn;using::strtok;using::strxfrm;using::strchr;using::strpbrk;using::strrchr;using::strstr;

#ifndef __CORRECT_ISO_CPP_STRING_H_PROTO

inlinevoid*memchr(void* __s, int__c, size_t __n)

{return__builtin_memchr(__s, __c, __n); }

inlinechar*strchr(char* __s, int__n)

{return__builtin_strchr(__s, __n); }

inlinechar*strpbrk(char* __s1, const char*__s2)

{return__builtin_strpbrk(__s1, __s2); }

inlinechar*strrchr(char* __s, int__n)

{return__builtin_strrchr(__s, __n); }

inlinechar*strstr(char* __s1, const char*__s2)

{return__builtin_strstr(__s1, __s2); }#endif_GLIBCXX_END_NAMESPACE_VERSION

}//namespace

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/194559.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 阶乘相加

    阶乘相加阶乘相加

    2022年4月24日
    44
  • PyCharm激活码永久有效PyCharm2021.2.1激活码教程-持续更新,一步到位

    PyCharm激活码永久有效PyCharm2021.2.1激活码教程-持续更新,一步到位PyCharm激活码永久有效2021.2.1激活码教程-Windows版永久激活-持续更新,Idea激活码2021.2.1成功激活

    2022年6月19日
    355
  • java算法是什么_什么是java算法

    java算法是什么_什么是java算法什么是java算法算法是指解题方案的准确而完整的描述,是一系列解决问题的清晰指令,java算法就是采用Java语言来实现解决某一问题的清晰指令。算法的特征:输入性:有零个或多个外部量作为算法的输入输出性:算法产生至少一个量作为输出确定性:算法中每条指令清晰,无歧义有穷性:算法中每条指令的执行次数有限,执行每条指令是时间也有限可行性:算法原则上能够精确的运行,而且人们用纸和笔做有限次运算后即可完成程…

    2022年7月9日
    21
  • &0xFF是怎么个意思[通俗易懂]

    &0xFF是怎么个意思[通俗易懂]今天看了下同事从网上拷贝的base64加密的代码,看到了这样如下的代码publicstaticStringencode(byte[]data){StringBuildersb=newStringBuilder();intlen=data.length;inti=0;intb1,b2,b3;while(i

    2022年6月15日
    39
  • 源码安装LAMP

    源码安装LAMP

    2021年8月14日
    52
  • python浮雕图片_python图片处理PIL

    python浮雕图片_python图片处理PIL一、PIL介绍PIL中所涉及的基本概念有如下几个:通道(bands)、模式(mode)、尺寸(size)、坐标系统(coordinatesystem)、调色板(palette)、信息(info)和滤波器(filters)1、通道每张图片都是由一个或者多个数据通道构成。PIL允许在单张图片中合成相同维数和深度的多个通道。以RGB图像为例,每张图片都是由三个数据通道构成,分别为R、G和B通道。而对…

    2022年6月20日
    26

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号