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


相关推荐

  • Javascript中indexOf的用法和分析

    Javascript中indexOf的用法和分析前言相信说到 indexOf 大家并不陌生 判断字符串是否包涵子字符串时特别常用 正则不熟练同学的利器 这篇文章就最近遇到的一个问题 用实例再说说说 indexOf 方法 本文是小知识点积累 不作为深入讨论的话题 因此这里没有解释 indexOf 的第二个参数 相信大家都知道第二个参数的作用 String 类型的使用温习一下大家熟知的字符串用法 举个 12345letstr orange nbsp

    2025年8月30日
    3
  • 服务器安装黑苹果系统,黑苹果 单系统安装教程

    服务器安装黑苹果系统,黑苹果 单系统安装教程黑苹果单系统安装教程[2021-02-1509:58:46]简介:php去除nbsp的方法:首先创建一个PHP代码示例文件;然后通过“preg_replace(“/(\s|\&nbsp\;| |\xc2\xa0)/”,””,strip_tags($val));”方法去除所有nbsp即可。推荐:《PHP视频教中国网科技7月24日讯今日,工信部发布今年第三批侵害用户权益行为的A…

    2022年5月5日
    114
  • 闫学灿acwing_二叉树外部路径内部路径

    闫学灿acwing_二叉树外部路径内部路径Ural 大学有 N 名职员,编号为 1∼N。他们的关系就像一棵以校长为根的树,父节点就是子节点的直接上司。每个职员有一个快乐指数,用整数 Hi 给出,其中 1≤i≤N。现在要召开一场周年庆宴会,不过,没有职员愿意和直接上司一起参会。在满足这个条件的前提下,主办方希望邀请一部分职员参会,使得所有参会职员的快乐指数总和最大,求这个最大值。输入格式第一行一个整数 N。接下来 N 行,第 i 行表示 i 号职员的快乐指数 Hi。接下来 N−1 行,每行输入一对整数 L,K,表示 K 是 L 的直接

    2022年8月9日
    10
  • 基于mpvue搭建一个小程序

    基于mpvue搭建一个小程序mpvue是一套定位于开发小程序的前端开发框架,熟悉vue基本语法即可开发,没有原生小程序开发的思维转换1.安装vue-cli$npminstall–globalvue-cli2.创建一个基于mpvue-quickstart模板的新项目vueinitmpvue/mpvue-quickstartmy-project开始选择题,一路回车也是没问题的3.进入项目文件…

    2022年5月7日
    59
  • navicat 激活码-激活码分享

    (navicat 激活码)这是一篇idea技术相关文章,由全栈君为大家提供,主要知识点是关于2021JetBrains全家桶永久激活码的内容IntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,下面是详细链接哦~https://javaforall.net/100143.htmlKUKQYKZ5XE-eyJsaWN…

    2022年3月22日
    64
  • 国外最流行的Bootstrap后台管理模板[通俗易懂]

    国外最流行的Bootstrap后台管理模板[通俗易懂]工欲善其事,必先利其器对于从事软件开发的您也一样,有一套熟悉的bootstrap后台ui框架让您的开发速度大幅度提升这是本人经常使用到的一些bootstrap后台框架推荐给大家第一名inspiniabootstrap演示地址http://cn.inspinia.cn效果图http://cn.inspinia.cnhttp://cn.inspinia.cn第二名…

    2022年4月25日
    41

发表回复

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

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