Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: string.h
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* ISO C99 Standard: 7.21 String handling <string.h>
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef _STRING_H
[21] Fix | Delete
#define _STRING_H 1
[22] Fix | Delete
[23] Fix | Delete
#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
[24] Fix | Delete
#include <bits/libc-header-start.h>
[25] Fix | Delete
[26] Fix | Delete
__BEGIN_DECLS
[27] Fix | Delete
[28] Fix | Delete
/* Get size_t and NULL from <stddef.h>. */
[29] Fix | Delete
#define __need_size_t
[30] Fix | Delete
#define __need_NULL
[31] Fix | Delete
#include <stddef.h>
[32] Fix | Delete
[33] Fix | Delete
/* Tell the caller that we provide correct C++ prototypes. */
[34] Fix | Delete
#if defined __cplusplus && (__GNUC_PREREQ (4, 4) \
[35] Fix | Delete
|| __glibc_clang_prereq (3, 5))
[36] Fix | Delete
# define __CORRECT_ISO_CPP_STRING_H_PROTO
[37] Fix | Delete
#endif
[38] Fix | Delete
[39] Fix | Delete
[40] Fix | Delete
/* Copy N bytes of SRC to DEST. */
[41] Fix | Delete
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
[42] Fix | Delete
size_t __n) __THROW __nonnull ((1, 2));
[43] Fix | Delete
/* Copy N bytes of SRC to DEST, guaranteeing
[44] Fix | Delete
correct behavior for overlapping strings. */
[45] Fix | Delete
extern void *memmove (void *__dest, const void *__src, size_t __n)
[46] Fix | Delete
__THROW __nonnull ((1, 2));
[47] Fix | Delete
[48] Fix | Delete
/* Copy no more than N bytes of SRC to DEST, stopping when C is found.
[49] Fix | Delete
Return the position in DEST one byte past where C was copied,
[50] Fix | Delete
or NULL if C was not found in the first N bytes of SRC. */
[51] Fix | Delete
#if defined __USE_MISC || defined __USE_XOPEN
[52] Fix | Delete
extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
[53] Fix | Delete
int __c, size_t __n)
[54] Fix | Delete
__THROW __nonnull ((1, 2));
[55] Fix | Delete
#endif /* Misc || X/Open. */
[56] Fix | Delete
[57] Fix | Delete
[58] Fix | Delete
/* Set N bytes of S to C. */
[59] Fix | Delete
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
[60] Fix | Delete
[61] Fix | Delete
/* Compare N bytes of S1 and S2. */
[62] Fix | Delete
extern int memcmp (const void *__s1, const void *__s2, size_t __n)
[63] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[64] Fix | Delete
[65] Fix | Delete
/* Search N bytes of S for C. */
[66] Fix | Delete
#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[67] Fix | Delete
extern "C++"
[68] Fix | Delete
{
[69] Fix | Delete
extern void *memchr (void *__s, int __c, size_t __n)
[70] Fix | Delete
__THROW __asm ("memchr") __attribute_pure__ __nonnull ((1));
[71] Fix | Delete
extern const void *memchr (const void *__s, int __c, size_t __n)
[72] Fix | Delete
__THROW __asm ("memchr") __attribute_pure__ __nonnull ((1));
[73] Fix | Delete
[74] Fix | Delete
# ifdef __OPTIMIZE__
[75] Fix | Delete
__extern_always_inline void *
[76] Fix | Delete
memchr (void *__s, int __c, size_t __n) __THROW
[77] Fix | Delete
{
[78] Fix | Delete
return __builtin_memchr (__s, __c, __n);
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
__extern_always_inline const void *
[82] Fix | Delete
memchr (const void *__s, int __c, size_t __n) __THROW
[83] Fix | Delete
{
[84] Fix | Delete
return __builtin_memchr (__s, __c, __n);
[85] Fix | Delete
}
[86] Fix | Delete
# endif
[87] Fix | Delete
}
[88] Fix | Delete
#else
[89] Fix | Delete
extern void *memchr (const void *__s, int __c, size_t __n)
[90] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[91] Fix | Delete
#endif
[92] Fix | Delete
[93] Fix | Delete
#ifdef __USE_GNU
[94] Fix | Delete
/* Search in S for C. This is similar to `memchr' but there is no
[95] Fix | Delete
length limit. */
[96] Fix | Delete
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[97] Fix | Delete
extern "C++" void *rawmemchr (void *__s, int __c)
[98] Fix | Delete
__THROW __asm ("rawmemchr") __attribute_pure__ __nonnull ((1));
[99] Fix | Delete
extern "C++" const void *rawmemchr (const void *__s, int __c)
[100] Fix | Delete
__THROW __asm ("rawmemchr") __attribute_pure__ __nonnull ((1));
[101] Fix | Delete
# else
[102] Fix | Delete
extern void *rawmemchr (const void *__s, int __c)
[103] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[104] Fix | Delete
# endif
[105] Fix | Delete
[106] Fix | Delete
/* Search N bytes of S for the final occurrence of C. */
[107] Fix | Delete
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[108] Fix | Delete
extern "C++" void *memrchr (void *__s, int __c, size_t __n)
[109] Fix | Delete
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1));
[110] Fix | Delete
extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
[111] Fix | Delete
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1));
[112] Fix | Delete
# else
[113] Fix | Delete
extern void *memrchr (const void *__s, int __c, size_t __n)
[114] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[115] Fix | Delete
# endif
[116] Fix | Delete
#endif
[117] Fix | Delete
[118] Fix | Delete
[119] Fix | Delete
/* Copy SRC to DEST. */
[120] Fix | Delete
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
[121] Fix | Delete
__THROW __nonnull ((1, 2));
[122] Fix | Delete
/* Copy no more than N characters of SRC to DEST. */
[123] Fix | Delete
extern char *strncpy (char *__restrict __dest,
[124] Fix | Delete
const char *__restrict __src, size_t __n)
[125] Fix | Delete
__THROW __nonnull ((1, 2));
[126] Fix | Delete
[127] Fix | Delete
/* Append SRC onto DEST. */
[128] Fix | Delete
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
[129] Fix | Delete
__THROW __nonnull ((1, 2));
[130] Fix | Delete
/* Append no more than N characters from SRC onto DEST. */
[131] Fix | Delete
extern char *strncat (char *__restrict __dest, const char *__restrict __src,
[132] Fix | Delete
size_t __n) __THROW __nonnull ((1, 2));
[133] Fix | Delete
[134] Fix | Delete
/* Compare S1 and S2. */
[135] Fix | Delete
extern int strcmp (const char *__s1, const char *__s2)
[136] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[137] Fix | Delete
/* Compare N characters of S1 and S2. */
[138] Fix | Delete
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
[139] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[140] Fix | Delete
[141] Fix | Delete
/* Compare the collated forms of S1 and S2. */
[142] Fix | Delete
extern int strcoll (const char *__s1, const char *__s2)
[143] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[144] Fix | Delete
/* Put a transformation of SRC into no more than N bytes of DEST. */
[145] Fix | Delete
extern size_t strxfrm (char *__restrict __dest,
[146] Fix | Delete
const char *__restrict __src, size_t __n)
[147] Fix | Delete
__THROW __nonnull ((2));
[148] Fix | Delete
[149] Fix | Delete
#ifdef __USE_XOPEN2K8
[150] Fix | Delete
/* POSIX.1-2008 extended locale interface (see locale.h). */
[151] Fix | Delete
# include <bits/types/locale_t.h>
[152] Fix | Delete
[153] Fix | Delete
/* Compare the collated forms of S1 and S2, using sorting rules from L. */
[154] Fix | Delete
extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l)
[155] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2, 3));
[156] Fix | Delete
/* Put a transformation of SRC into no more than N bytes of DEST,
[157] Fix | Delete
using sorting rules from L. */
[158] Fix | Delete
extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
[159] Fix | Delete
locale_t __l) __THROW __nonnull ((2, 4));
[160] Fix | Delete
#endif
[161] Fix | Delete
[162] Fix | Delete
#if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \
[163] Fix | Delete
|| __GLIBC_USE (LIB_EXT2))
[164] Fix | Delete
/* Duplicate S, returning an identical malloc'd string. */
[165] Fix | Delete
extern char *strdup (const char *__s)
[166] Fix | Delete
__THROW __attribute_malloc__ __nonnull ((1));
[167] Fix | Delete
#endif
[168] Fix | Delete
[169] Fix | Delete
/* Return a malloc'd copy of at most N bytes of STRING. The
[170] Fix | Delete
resultant string is terminated even if no null terminator
[171] Fix | Delete
appears before STRING[N]. */
[172] Fix | Delete
#if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2)
[173] Fix | Delete
extern char *strndup (const char *__string, size_t __n)
[174] Fix | Delete
__THROW __attribute_malloc__ __nonnull ((1));
[175] Fix | Delete
#endif
[176] Fix | Delete
[177] Fix | Delete
#if defined __USE_GNU && defined __GNUC__
[178] Fix | Delete
/* Duplicate S, returning an identical alloca'd string. */
[179] Fix | Delete
# define strdupa(s) \
[180] Fix | Delete
(__extension__ \
[181] Fix | Delete
({ \
[182] Fix | Delete
const char *__old = (s); \
[183] Fix | Delete
size_t __len = strlen (__old) + 1; \
[184] Fix | Delete
char *__new = (char *) __builtin_alloca (__len); \
[185] Fix | Delete
(char *) memcpy (__new, __old, __len); \
[186] Fix | Delete
}))
[187] Fix | Delete
[188] Fix | Delete
/* Return an alloca'd copy of at most N bytes of string. */
[189] Fix | Delete
# define strndupa(s, n) \
[190] Fix | Delete
(__extension__ \
[191] Fix | Delete
({ \
[192] Fix | Delete
const char *__old = (s); \
[193] Fix | Delete
size_t __len = strnlen (__old, (n)); \
[194] Fix | Delete
char *__new = (char *) __builtin_alloca (__len + 1); \
[195] Fix | Delete
__new[__len] = '\0'; \
[196] Fix | Delete
(char *) memcpy (__new, __old, __len); \
[197] Fix | Delete
}))
[198] Fix | Delete
#endif
[199] Fix | Delete
[200] Fix | Delete
/* Find the first occurrence of C in S. */
[201] Fix | Delete
#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[202] Fix | Delete
extern "C++"
[203] Fix | Delete
{
[204] Fix | Delete
extern char *strchr (char *__s, int __c)
[205] Fix | Delete
__THROW __asm ("strchr") __attribute_pure__ __nonnull ((1));
[206] Fix | Delete
extern const char *strchr (const char *__s, int __c)
[207] Fix | Delete
__THROW __asm ("strchr") __attribute_pure__ __nonnull ((1));
[208] Fix | Delete
[209] Fix | Delete
# ifdef __OPTIMIZE__
[210] Fix | Delete
__extern_always_inline char *
[211] Fix | Delete
strchr (char *__s, int __c) __THROW
[212] Fix | Delete
{
[213] Fix | Delete
return __builtin_strchr (__s, __c);
[214] Fix | Delete
}
[215] Fix | Delete
[216] Fix | Delete
__extern_always_inline const char *
[217] Fix | Delete
strchr (const char *__s, int __c) __THROW
[218] Fix | Delete
{
[219] Fix | Delete
return __builtin_strchr (__s, __c);
[220] Fix | Delete
}
[221] Fix | Delete
# endif
[222] Fix | Delete
}
[223] Fix | Delete
#else
[224] Fix | Delete
extern char *strchr (const char *__s, int __c)
[225] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[226] Fix | Delete
#endif
[227] Fix | Delete
/* Find the last occurrence of C in S. */
[228] Fix | Delete
#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[229] Fix | Delete
extern "C++"
[230] Fix | Delete
{
[231] Fix | Delete
extern char *strrchr (char *__s, int __c)
[232] Fix | Delete
__THROW __asm ("strrchr") __attribute_pure__ __nonnull ((1));
[233] Fix | Delete
extern const char *strrchr (const char *__s, int __c)
[234] Fix | Delete
__THROW __asm ("strrchr") __attribute_pure__ __nonnull ((1));
[235] Fix | Delete
[236] Fix | Delete
# ifdef __OPTIMIZE__
[237] Fix | Delete
__extern_always_inline char *
[238] Fix | Delete
strrchr (char *__s, int __c) __THROW
[239] Fix | Delete
{
[240] Fix | Delete
return __builtin_strrchr (__s, __c);
[241] Fix | Delete
}
[242] Fix | Delete
[243] Fix | Delete
__extern_always_inline const char *
[244] Fix | Delete
strrchr (const char *__s, int __c) __THROW
[245] Fix | Delete
{
[246] Fix | Delete
return __builtin_strrchr (__s, __c);
[247] Fix | Delete
}
[248] Fix | Delete
# endif
[249] Fix | Delete
}
[250] Fix | Delete
#else
[251] Fix | Delete
extern char *strrchr (const char *__s, int __c)
[252] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[253] Fix | Delete
#endif
[254] Fix | Delete
[255] Fix | Delete
#ifdef __USE_GNU
[256] Fix | Delete
/* This function is similar to `strchr'. But it returns a pointer to
[257] Fix | Delete
the closing NUL byte in case C is not found in S. */
[258] Fix | Delete
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[259] Fix | Delete
extern "C++" char *strchrnul (char *__s, int __c)
[260] Fix | Delete
__THROW __asm ("strchrnul") __attribute_pure__ __nonnull ((1));
[261] Fix | Delete
extern "C++" const char *strchrnul (const char *__s, int __c)
[262] Fix | Delete
__THROW __asm ("strchrnul") __attribute_pure__ __nonnull ((1));
[263] Fix | Delete
# else
[264] Fix | Delete
extern char *strchrnul (const char *__s, int __c)
[265] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[266] Fix | Delete
# endif
[267] Fix | Delete
#endif
[268] Fix | Delete
[269] Fix | Delete
/* Return the length of the initial segment of S which
[270] Fix | Delete
consists entirely of characters not in REJECT. */
[271] Fix | Delete
extern size_t strcspn (const char *__s, const char *__reject)
[272] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[273] Fix | Delete
/* Return the length of the initial segment of S which
[274] Fix | Delete
consists entirely of characters in ACCEPT. */
[275] Fix | Delete
extern size_t strspn (const char *__s, const char *__accept)
[276] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[277] Fix | Delete
/* Find the first occurrence in S of any character in ACCEPT. */
[278] Fix | Delete
#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[279] Fix | Delete
extern "C++"
[280] Fix | Delete
{
[281] Fix | Delete
extern char *strpbrk (char *__s, const char *__accept)
[282] Fix | Delete
__THROW __asm ("strpbrk") __attribute_pure__ __nonnull ((1, 2));
[283] Fix | Delete
extern const char *strpbrk (const char *__s, const char *__accept)
[284] Fix | Delete
__THROW __asm ("strpbrk") __attribute_pure__ __nonnull ((1, 2));
[285] Fix | Delete
[286] Fix | Delete
# ifdef __OPTIMIZE__
[287] Fix | Delete
__extern_always_inline char *
[288] Fix | Delete
strpbrk (char *__s, const char *__accept) __THROW
[289] Fix | Delete
{
[290] Fix | Delete
return __builtin_strpbrk (__s, __accept);
[291] Fix | Delete
}
[292] Fix | Delete
[293] Fix | Delete
__extern_always_inline const char *
[294] Fix | Delete
strpbrk (const char *__s, const char *__accept) __THROW
[295] Fix | Delete
{
[296] Fix | Delete
return __builtin_strpbrk (__s, __accept);
[297] Fix | Delete
}
[298] Fix | Delete
# endif
[299] Fix | Delete
}
[300] Fix | Delete
#else
[301] Fix | Delete
extern char *strpbrk (const char *__s, const char *__accept)
[302] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[303] Fix | Delete
#endif
[304] Fix | Delete
/* Find the first occurrence of NEEDLE in HAYSTACK. */
[305] Fix | Delete
#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[306] Fix | Delete
extern "C++"
[307] Fix | Delete
{
[308] Fix | Delete
extern char *strstr (char *__haystack, const char *__needle)
[309] Fix | Delete
__THROW __asm ("strstr") __attribute_pure__ __nonnull ((1, 2));
[310] Fix | Delete
extern const char *strstr (const char *__haystack, const char *__needle)
[311] Fix | Delete
__THROW __asm ("strstr") __attribute_pure__ __nonnull ((1, 2));
[312] Fix | Delete
[313] Fix | Delete
# ifdef __OPTIMIZE__
[314] Fix | Delete
__extern_always_inline char *
[315] Fix | Delete
strstr (char *__haystack, const char *__needle) __THROW
[316] Fix | Delete
{
[317] Fix | Delete
return __builtin_strstr (__haystack, __needle);
[318] Fix | Delete
}
[319] Fix | Delete
[320] Fix | Delete
__extern_always_inline const char *
[321] Fix | Delete
strstr (const char *__haystack, const char *__needle) __THROW
[322] Fix | Delete
{
[323] Fix | Delete
return __builtin_strstr (__haystack, __needle);
[324] Fix | Delete
}
[325] Fix | Delete
# endif
[326] Fix | Delete
}
[327] Fix | Delete
#else
[328] Fix | Delete
extern char *strstr (const char *__haystack, const char *__needle)
[329] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[330] Fix | Delete
#endif
[331] Fix | Delete
[332] Fix | Delete
[333] Fix | Delete
/* Divide S into tokens separated by characters in DELIM. */
[334] Fix | Delete
extern char *strtok (char *__restrict __s, const char *__restrict __delim)
[335] Fix | Delete
__THROW __nonnull ((2));
[336] Fix | Delete
[337] Fix | Delete
/* Divide S into tokens separated by characters in DELIM. Information
[338] Fix | Delete
passed between calls are stored in SAVE_PTR. */
[339] Fix | Delete
extern char *__strtok_r (char *__restrict __s,
[340] Fix | Delete
const char *__restrict __delim,
[341] Fix | Delete
char **__restrict __save_ptr)
[342] Fix | Delete
__THROW __nonnull ((2, 3));
[343] Fix | Delete
#ifdef __USE_POSIX
[344] Fix | Delete
extern char *strtok_r (char *__restrict __s, const char *__restrict __delim,
[345] Fix | Delete
char **__restrict __save_ptr)
[346] Fix | Delete
__THROW __nonnull ((2, 3));
[347] Fix | Delete
#endif
[348] Fix | Delete
[349] Fix | Delete
#ifdef __USE_GNU
[350] Fix | Delete
/* Similar to `strstr' but this function ignores the case of both strings. */
[351] Fix | Delete
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[352] Fix | Delete
extern "C++" char *strcasestr (char *__haystack, const char *__needle)
[353] Fix | Delete
__THROW __asm ("strcasestr") __attribute_pure__ __nonnull ((1, 2));
[354] Fix | Delete
extern "C++" const char *strcasestr (const char *__haystack,
[355] Fix | Delete
const char *__needle)
[356] Fix | Delete
__THROW __asm ("strcasestr") __attribute_pure__ __nonnull ((1, 2));
[357] Fix | Delete
# else
[358] Fix | Delete
extern char *strcasestr (const char *__haystack, const char *__needle)
[359] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[360] Fix | Delete
# endif
[361] Fix | Delete
#endif
[362] Fix | Delete
[363] Fix | Delete
#ifdef __USE_GNU
[364] Fix | Delete
/* Find the first occurrence of NEEDLE in HAYSTACK.
[365] Fix | Delete
NEEDLE is NEEDLELEN bytes long;
[366] Fix | Delete
HAYSTACK is HAYSTACKLEN bytes long. */
[367] Fix | Delete
extern void *memmem (const void *__haystack, size_t __haystacklen,
[368] Fix | Delete
const void *__needle, size_t __needlelen)
[369] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 3));
[370] Fix | Delete
[371] Fix | Delete
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
[372] Fix | Delete
last written byte. */
[373] Fix | Delete
extern void *__mempcpy (void *__restrict __dest,
[374] Fix | Delete
const void *__restrict __src, size_t __n)
[375] Fix | Delete
__THROW __nonnull ((1, 2));
[376] Fix | Delete
extern void *mempcpy (void *__restrict __dest,
[377] Fix | Delete
const void *__restrict __src, size_t __n)
[378] Fix | Delete
__THROW __nonnull ((1, 2));
[379] Fix | Delete
#endif
[380] Fix | Delete
[381] Fix | Delete
[382] Fix | Delete
/* Return the length of S. */
[383] Fix | Delete
extern size_t strlen (const char *__s)
[384] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[385] Fix | Delete
[386] Fix | Delete
#ifdef __USE_XOPEN2K8
[387] Fix | Delete
/* Find the length of STRING, but scan at most MAXLEN characters.
[388] Fix | Delete
If no '\0' terminator is found in that many characters, return MAXLEN. */
[389] Fix | Delete
extern size_t strnlen (const char *__string, size_t __maxlen)
[390] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1));
[391] Fix | Delete
#endif
[392] Fix | Delete
[393] Fix | Delete
[394] Fix | Delete
/* Return a string describing the meaning of the `errno' code in ERRNUM. */
[395] Fix | Delete
extern char *strerror (int __errnum) __THROW;
[396] Fix | Delete
#ifdef __USE_XOPEN2K
[397] Fix | Delete
/* Reentrant version of `strerror'.
[398] Fix | Delete
There are 2 flavors of `strerror_r', GNU which returns the string
[399] Fix | Delete
and may or may not use the supplied temporary buffer and POSIX one
[400] Fix | Delete
which fills the string into the buffer.
[401] Fix | Delete
To use the POSIX version, -D_XOPEN_SOURCE=600 or -D_POSIX_C_SOURCE=200112L
[402] Fix | Delete
without -D_GNU_SOURCE is needed, otherwise the GNU version is
[403] Fix | Delete
preferred. */
[404] Fix | Delete
# if defined __USE_XOPEN2K && !defined __USE_GNU
[405] Fix | Delete
/* Fill BUF with a string describing the meaning of the `errno' code in
[406] Fix | Delete
ERRNUM. */
[407] Fix | Delete
# ifdef __REDIRECT_NTH
[408] Fix | Delete
extern int __REDIRECT_NTH (strerror_r,
[409] Fix | Delete
(int __errnum, char *__buf, size_t __buflen),
[410] Fix | Delete
__xpg_strerror_r) __nonnull ((2));
[411] Fix | Delete
# else
[412] Fix | Delete
extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen)
[413] Fix | Delete
__THROW __nonnull ((2));
[414] Fix | Delete
# define strerror_r __xpg_strerror_r
[415] Fix | Delete
# endif
[416] Fix | Delete
# else
[417] Fix | Delete
/* If a temporary buffer is required, at most BUFLEN bytes of BUF will be
[418] Fix | Delete
used. */
[419] Fix | Delete
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
[420] Fix | Delete
__THROW __nonnull ((2)) __wur;
[421] Fix | Delete
# endif
[422] Fix | Delete
#endif
[423] Fix | Delete
[424] Fix | Delete
#ifdef __USE_XOPEN2K8
[425] Fix | Delete
/* Translate error number to string according to the locale L. */
[426] Fix | Delete
extern char *strerror_l (int __errnum, locale_t __l) __THROW;
[427] Fix | Delete
#endif
[428] Fix | Delete
[429] Fix | Delete
#ifdef __USE_MISC
[430] Fix | Delete
# include <strings.h>
[431] Fix | Delete
[432] Fix | Delete
/* Set N bytes of S to 0. The compiler will not delete a call to this
[433] Fix | Delete
function, even if S is dead after the call. */
[434] Fix | Delete
extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1));
[435] Fix | Delete
[436] Fix | Delete
/* Return the next DELIM-delimited token from *STRINGP,
[437] Fix | Delete
terminating it with a '\0', and update *STRINGP to point past it. */
[438] Fix | Delete
extern char *strsep (char **__restrict __stringp,
[439] Fix | Delete
const char *__restrict __delim)
[440] Fix | Delete
__THROW __nonnull ((1, 2));
[441] Fix | Delete
#endif
[442] Fix | Delete
[443] Fix | Delete
#ifdef __USE_XOPEN2K8
[444] Fix | Delete
/* Return a string describing the meaning of the signal number in SIG. */
[445] Fix | Delete
extern char *strsignal (int __sig) __THROW;
[446] Fix | Delete
[447] Fix | Delete
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
[448] Fix | Delete
extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src)
[449] Fix | Delete
__THROW __nonnull ((1, 2));
[450] Fix | Delete
extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
[451] Fix | Delete
__THROW __nonnull ((1, 2));
[452] Fix | Delete
[453] Fix | Delete
/* Copy no more than N characters of SRC to DEST, returning the address of
[454] Fix | Delete
the last character written into DEST. */
[455] Fix | Delete
extern char *__stpncpy (char *__restrict __dest,
[456] Fix | Delete
const char *__restrict __src, size_t __n)
[457] Fix | Delete
__THROW __nonnull ((1, 2));
[458] Fix | Delete
extern char *stpncpy (char *__restrict __dest,
[459] Fix | Delete
const char *__restrict __src, size_t __n)
[460] Fix | Delete
__THROW __nonnull ((1, 2));
[461] Fix | Delete
#endif
[462] Fix | Delete
[463] Fix | Delete
#ifdef __USE_GNU
[464] Fix | Delete
/* Compare S1 and S2 as strings holding name & indices/version numbers. */
[465] Fix | Delete
extern int strverscmp (const char *__s1, const char *__s2)
[466] Fix | Delete
__THROW __attribute_pure__ __nonnull ((1, 2));
[467] Fix | Delete
[468] Fix | Delete
/* Sautee STRING briskly. */
[469] Fix | Delete
extern char *strfry (char *__string) __THROW __nonnull ((1));
[470] Fix | Delete
[471] Fix | Delete
/* Frobnicate N bytes of S. */
[472] Fix | Delete
extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1));
[473] Fix | Delete
[474] Fix | Delete
# ifndef basename
[475] Fix | Delete
/* Return the file name within directory of FILENAME. We don't
[476] Fix | Delete
declare the function if the `basename' macro is available (defined
[477] Fix | Delete
in <libgen.h>) which makes the XPG version of this function
[478] Fix | Delete
available. */
[479] Fix | Delete
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
[480] Fix | Delete
extern "C++" char *basename (char *__filename)
[481] Fix | Delete
__THROW __asm ("basename") __nonnull ((1));
[482] Fix | Delete
extern "C++" const char *basename (const char *__filename)
[483] Fix | Delete
__THROW __asm ("basename") __nonnull ((1));
[484] Fix | Delete
# else
[485] Fix | Delete
extern char *basename (const char *__filename) __THROW __nonnull ((1));
[486] Fix | Delete
# endif
[487] Fix | Delete
# endif
[488] Fix | Delete
#endif
[489] Fix | Delete
[490] Fix | Delete
#if __GNUC_PREREQ (3,4)
[491] Fix | Delete
# if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
[492] Fix | Delete
/* Functions with security checks. */
[493] Fix | Delete
# include <bits/string_fortified.h>
[494] Fix | Delete
# endif
[495] Fix | Delete
#endif
[496] Fix | Delete
[497] Fix | Delete
__END_DECLS
[498] Fix | Delete
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function