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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • O泡果奶-APK反编译-Lua脚本

    O泡果奶-APK反编译-Lua脚本O泡果奶-APK反编译-Lua脚本反编译出的代码(有注释)–main.lua–require(“import”)import(“android.app.*”)import(“android.os.*”)import(“android.widget.*”)import(“android.view.*”)import(“android.view.View”)import(“android.content.Context”)import(“android.media.MediaPlay

    2022年9月18日
  • Python中Permission denied怎么解决

    Python中Permission denied怎么解决运行代码时,出现诸如这样的文件的权限有可能出问题,不过更多是路径本身有问题。

    2022年10月22日
  • [Matlab]绘图颜色[通俗易懂]

    [Matlab]绘图颜色[通俗易懂][Matlab]绘图颜色修改或规定Matlab中几何图形的颜色,对颜色可以有四种描述方法,分别是:颜色名称、短名称、RGB三元组、十六进制颜色代码。Matlab中较美观的颜色(RGB三元组)%%适用于Matlab的RGB颜色[0.00,0.45,0.74]//蓝[0.85,0.33,0.10]//橙红[0.93,0.69,0.13]//橙黄[0.72,0.27,1]//淡紫[0.47,0.67,0.19]//淡绿……待补充Matlab语言%%对点scat

    2022年5月31日
  • LOJ10049_基金012498

    LOJ10049_基金012498LOJ10049Trie裸题(虽然我写这SB题写了快一小时)对字符串建树的同时刷答案,有两种情况:经过了一个字符串的词尾(即过了一个标记点)一直在另一个字符串里走(没有让树长出新枝)#include&lt;bits/stdc++.h&gt;#definegt()(p1==p2&amp;&amp;(p2=(p1=buf)+fread(buf,1,1000000,std…

    2022年10月1日
  • 移动端开发基础知识「建议收藏」

    移动端开发基础知识「建议收藏」移动web开发指的是:需要适配移动设备的网页开发移动web开发与pc端web开发没有本质的区别,使用的还是HTML/CSS/JavaScript的技术移动端与pc端web开发的区别:1、浏览器不同移动端的浏览器与pc端不同谷歌浏览器苹果浏览器、UC浏览器QQ浏览器百度手机浏览器360安全浏览器搜狗浏览器猎豹浏览器等国内的手机浏览器都是根据webkit内核修…

    2022年6月24日
  • 北京儿研所电话预约挂号流程详解

    北京儿研所电话预约挂号流程详解北京儿童医院电话预约挂号流程详解  北京儿童医院以其权威的学科地位、优秀的医师团队及先进的技术设备吸引来自全国各地的患儿前来就诊,与此同时,挂号难就成了患儿家长及院方最头疼也最无奈的问题,门诊楼扩建的

    2022年8月6日

发表回复

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

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