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


相关推荐

  • IDEA中,java项目无法使用Test测试的解决办法

    IDEA中,java项目无法使用Test测试的解决办法一、IDEA使用junit的@Test注解报错1、File–ProjectStructure–Modules2、点击加号3、选择JARsordirectories…4、在idea的安装路径下的lib文件夹,选中两个jar包5、然后勾选上,点击Apply–ok二、使用junit无法在控制台进行输入1、Help–EditCustomVMOptions..2、添加代码-Deditable.java….

    2022年10月17日
    0
  • java前端和后端的区别[通俗易懂]

    java前端和后端的区别[通俗易懂]java”前端”是与用户直接交互的部分,包括你在浏览网页时接触的所有视觉内容–从字体到颜色,以及下拉菜单和侧边栏。这些视觉内容,都是由浏览器解析、处理、渲染相关HTML、CSS、Javascript文件后呈现而来。java后端开发者使用这些工具编写干净、可移植、具有良好文档支持的代码来创建或更新Web应用。但在写代码之前,他们需要与客户沟通,了解其实际需求并转化为技术目标,制定最有效且精简的方案来进行实现。 java”前端”开发,就是要创造上面提到的网站面向用户的部分背后的代码,并.

    2022年7月9日
    17
  • div垂直居中的几种方式_div垂直水平居中

    div垂直居中的几种方式_div垂直水平居中利用CSS进行元素的水平居中,比较简单,行级元素设置其父元素的text-aligncenter,块级元素设置其本身的left和rightmargins为auto即可。本文收集了六种利用css进行元素的垂直居中的方法,每一种适用于不同的情况,在实际的使用过程中选择某一种方法即可。Line-HeightMethod试用:单行文本垂直居中,demo代码:

    2022年4月20日
    58
  • 【转载】lvs为何不能完全替代DNS轮询

    【转载】lvs为何不能完全替代DNS轮询

    2021年11月20日
    51
  • docker搭建真机的kafka集群

    docker搭建真机的kafka集群

    2021年8月3日
    68
  • make menuconfig执行流程分析[通俗易懂]

    make menuconfig执行流程分析[通俗易懂]在编译内核前,一般是根据已有的配置文件(一般在内核根目录下的arch/arm/configs/文件夹下,把该目录下的xxx_defconfig文件拷贝到内核根目录下,并重命名为.config)来进行编译;或者需要先配置裁剪内核。假设我们要基于一块ARM芯片的开发板配置裁剪内核时,在内核的根目录下运行:makeARCH=armmenuconfig命令后,会弹出如下配置界面:…

    2022年6月12日
    24

发表回复

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

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