⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 string.in.h

📁 gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件
💻 H
📖 第 1 页 / 共 2 页
字号:
/* -*- buffer-read-only: t -*- vi: set ro: *//* DO NOT EDIT! GENERATED AUTOMATICALLY! *//* A GNU-like <string.h>.   Copyright (C) 1995-1996, 2001-2008 Free Software Foundation, Inc.   This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 3, or (at your option)   any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software Foundation,   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */#ifndef _GL_STRING_H/* The include_next requires a split double-inclusion guard.  */#@INCLUDE_NEXT@ @NEXT_STRING_H@#ifndef _GL_STRING_H#define _GL_STRING_H#ifndef __attribute__/* This feature is available in gcc versions 2.5 and later.  */# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)#  define __attribute__(Spec) /* empty */# endif/* The attribute __pure__ was added in gcc 2.96.  */# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)#  define __pure__ /* empty */# endif#endif/* The definition of GL_LINK_WARNING is copied here.  */#ifdef __cplusplusextern "C" {#endif/* Return the first occurrence of NEEDLE in HAYSTACK.  */#if @GNULIB_MEMMEM@# if @REPLACE_MEMMEM@#  define memmem rpl_memmem# endif# if ! @HAVE_DECL_MEMMEM@ || @REPLACE_MEMMEM@extern void *memmem (void const *__haystack, size_t __haystack_len,		     void const *__needle, size_t __needle_len)  __attribute__ ((__pure__));# endif#elif defined GNULIB_POSIXCHECK# undef memmem# define memmem(a,al,b,bl) \    (GL_LINK_WARNING ("memmem is unportable and often quadratic - " \                      "use gnulib module memmem-simple for portability, " \                      "and module memmem for speed" ), \     memmem (a, al, b, bl))#endif/* Copy N bytes of SRC to DEST, return pointer to bytes after the   last written byte.  */#if @GNULIB_MEMPCPY@# if ! @HAVE_MEMPCPY@extern void *mempcpy (void *restrict __dest, void const *restrict __src,		      size_t __n);# endif#elif defined GNULIB_POSIXCHECK# undef mempcpy# define mempcpy(a,b,n) \    (GL_LINK_WARNING ("mempcpy is unportable - " \                      "use gnulib module mempcpy for portability"), \     mempcpy (a, b, n))#endif/* Search backwards through a block for a byte (specified as an int).  */#if @GNULIB_MEMRCHR@# if ! @HAVE_DECL_MEMRCHR@extern void *memrchr (void const *, int, size_t)  __attribute__ ((__pure__));# endif#elif defined GNULIB_POSIXCHECK# undef memrchr# define memrchr(a,b,c) \    (GL_LINK_WARNING ("memrchr is unportable - " \                      "use gnulib module memrchr for portability"), \     memrchr (a, b, c))#endif/* Copy SRC to DST, returning the address of the terminating '\0' in DST.  */#if @GNULIB_STPCPY@# if ! @HAVE_STPCPY@extern char *stpcpy (char *restrict __dst, char const *restrict __src);# endif#elif defined GNULIB_POSIXCHECK# undef stpcpy# define stpcpy(a,b) \    (GL_LINK_WARNING ("stpcpy is unportable - " \                      "use gnulib module stpcpy for portability"), \     stpcpy (a, b))#endif/* Copy no more than N bytes of SRC to DST, returning a pointer past the   last non-NUL byte written into DST.  */#if @GNULIB_STPNCPY@# if ! @HAVE_STPNCPY@#  define stpncpy gnu_stpncpyextern char *stpncpy (char *restrict __dst, char const *restrict __src,		      size_t __n);# endif#elif defined GNULIB_POSIXCHECK# undef stpncpy# define stpncpy(a,b,n) \    (GL_LINK_WARNING ("stpncpy is unportable - " \                      "use gnulib module stpncpy for portability"), \     stpncpy (a, b, n))#endif#if defined GNULIB_POSIXCHECK/* strchr() does not work with multibyte strings if the locale encoding is   GB18030 and the character to be searched is a digit.  */# undef strchr# define strchr(s,c) \    (GL_LINK_WARNING ("strchr cannot work correctly on character strings " \                      "in some multibyte locales - " \                      "use mbschr if you care about internationalization"), \     strchr (s, c))#endif/* Find the first occurrence of C in S or the final NUL byte.  */#if @GNULIB_STRCHRNUL@# if ! @HAVE_STRCHRNUL@extern char *strchrnul (char const *__s, int __c_in)  __attribute__ ((__pure__));# endif#elif defined GNULIB_POSIXCHECK# undef strchrnul# define strchrnul(a,b) \    (GL_LINK_WARNING ("strchrnul is unportable - " \                      "use gnulib module strchrnul for portability"), \     strchrnul (a, b))#endif/* Duplicate S, returning an identical malloc'd string.  */#if @GNULIB_STRDUP@# if ! @HAVE_DECL_STRDUP@ && ! defined strdupextern char *strdup (char const *__s);# endif#elif defined GNULIB_POSIXCHECK# undef strdup# define strdup(a) \    (GL_LINK_WARNING ("strdup is unportable - " \                      "use gnulib module strdup for portability"), \     strdup (a))#endif/* Return a newly allocated copy of at most N bytes of STRING.  */#if @GNULIB_STRNDUP@# if ! @HAVE_STRNDUP@#  undef strndup#  define strndup rpl_strndup# endif# if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@extern char *strndup (char const *__string, size_t __n);# endif#elif defined GNULIB_POSIXCHECK# undef strndup# define strndup(a,n) \    (GL_LINK_WARNING ("strndup is unportable - " \                      "use gnulib module strndup for portability"), \     strndup (a, n))#endif/* Find the length (number of bytes) of STRING, but scan at most   MAXLEN bytes.  If no '\0' terminator is found in that many bytes,   return MAXLEN.  */#if @GNULIB_STRNLEN@# if ! @HAVE_DECL_STRNLEN@extern size_t strnlen (char const *__string, size_t __maxlen)  __attribute__ ((__pure__));# endif#elif defined GNULIB_POSIXCHECK# undef strnlen# define strnlen(a,n) \    (GL_LINK_WARNING ("strnlen is unportable - " \                      "use gnulib module strnlen for portability"), \     strnlen (a, n))#endif#if defined GNULIB_POSIXCHECK/* strcspn() assumes the second argument is a list of single-byte characters.   Even in this simple case, it does not work with multibyte strings if the   locale encoding is GB18030 and one of the characters to be searched is a   digit.  */# undef strcspn# define strcspn(s,a) \    (GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \                      "in multibyte locales - " \                      "use mbscspn if you care about internationalization"), \     strcspn (s, a))#endif/* Find the first occurrence in S of any character in ACCEPT.  */#if @GNULIB_STRPBRK@# if ! @HAVE_STRPBRK@extern char *strpbrk (char const *__s, char const *__accept)  __attribute__ ((__pure__));# endif# if defined GNULIB_POSIXCHECK/* strpbrk() assumes the second argument is a list of single-byte characters.   Even in this simple case, it does not work with multibyte strings if the   locale encoding is GB18030 and one of the characters to be searched is a   digit.  */#  undef strpbrk#  define strpbrk(s,a) \     (GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \                       "in multibyte locales - " \                       "use mbspbrk if you care about internationalization"), \      strpbrk (s, a))# endif#elif defined GNULIB_POSIXCHECK# undef strpbrk# define strpbrk(s,a) \    (GL_LINK_WARNING ("strpbrk is unportable - " \                      "use gnulib module strpbrk for portability"), \     strpbrk (s, a))#endif#if defined GNULIB_POSIXCHECK/* strspn() assumes the second argument is a list of single-byte characters.   Even in this simple case, it cannot work with multibyte strings.  */# undef strspn# define strspn(s,a) \    (GL_LINK_WARNING ("strspn cannot work correctly on character strings " \                      "in multibyte locales - " \                      "use mbsspn if you care about internationalization"), \     strspn (s, a))#endif#if defined GNULIB_POSIXCHECK/* strrchr() does not work with multibyte strings if the locale encoding is   GB18030 and the character to be searched is a digit.  */# undef strrchr# define strrchr(s,c) \    (GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \                      "in some multibyte locales - " \                      "use mbsrchr if you care about internationalization"), \     strrchr (s, c))#endif/* Search the next delimiter (char listed in DELIM) starting at *STRINGP.   If one is found, overwrite it with a NUL, and advance *STRINGP   to point to the next char after it.  Otherwise, set *STRINGP to NULL.   If *STRINGP was already NULL, nothing happens.   Return the old value of *STRINGP.   This is a variant of strtok() that is multithread-safe and supports   empty fields.   Caveat: It modifies the original string.   Caveat: These functions cannot be used on constant strings.   Caveat: The identity of the delimiting character is lost.   Caveat: It doesn't work with multibyte strings unless all of the delimiter           characters are ASCII characters < 0x30.   See also strtok_r().  */#if @GNULIB_STRSEP@# if ! @HAVE_STRSEP@extern char *strsep (char **restrict __stringp, char const *restrict __delim);# endif# if defined GNULIB_POSIXCHECK#  undef strsep#  define strsep(s,d) \     (GL_LINK_WARNING ("strsep cannot work correctly on character strings " \                       "in multibyte locales - " \                       "use mbssep if you care about internationalization"), \      strsep (s, d))# endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -