2N/A/* A GNU-like <string.h>.
2N/A
2N/A Copyright (C) 1995-1996, 2001-2010 Free Software Foundation, Inc.
2N/A
2N/A This program is free software; you can redistribute it and/or modify
2N/A it under the terms of the GNU General Public License as published by
2N/A the Free Software Foundation; either version 3, or (at your option)
2N/A any later version.
2N/A
2N/A This program is distributed in the hope that it will be useful,
2N/A but WITHOUT ANY WARRANTY; without even the implied warranty of
2N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2N/A GNU General Public License for more details.
2N/A
2N/A You should have received a copy of the GNU General Public License
2N/A along with this program; if not, write to the Free Software Foundation,
2N/A Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
2N/A
2N/A#ifndef _GL_STRING_H
2N/A
2N/A#if __GNUC__ >= 3
2N/A@PRAGMA_SYSTEM_HEADER@
2N/A#endif
2N/A
2N/A/* The include_next requires a split double-inclusion guard. */
2N/A#@INCLUDE_NEXT@ @NEXT_STRING_H@
2N/A
2N/A#ifndef _GL_STRING_H
2N/A#define _GL_STRING_H
2N/A
2N/A/* NetBSD 5.0 mis-defines NULL. */
2N/A#include <stddef.h>
2N/A
2N/A/* MirBSD defines mbslen as a macro. */
2N/A#if @GNULIB_MBSLEN@ && defined __MirBSD__
2N/A# include <wchar.h>
2N/A#endif
2N/A
2N/A#ifndef __attribute__
2N/A/* This feature is available in gcc versions 2.5 and later. */
2N/A# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
2N/A# define __attribute__(Spec) /* empty */
2N/A# endif
2N/A#endif
2N/A/* The attribute __pure__ was added in gcc 2.96. */
2N/A#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
2N/A# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
2N/A#else
2N/A# define _GL_ATTRIBUTE_PURE /* empty */
2N/A#endif
2N/A
2N/A/* NetBSD 5.0 declares strsignal in <unistd.h>, not in <string.h>. */
2N/A/* But avoid namespace pollution on glibc systems. */
2N/A#if (@GNULIB_STRSIGNAL@ || defined GNULIB_POSIXCHECK) \
2N/A && ! defined __GLIBC__
2N/A# include <unistd.h>
2N/A#endif
2N/A
2N/A/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
2N/A
2N/A/* The definition of _GL_ARG_NONNULL is copied here. */
2N/A
2N/A/* The definition of _GL_WARN_ON_USE is copied here. */
2N/A
2N/A
2N/A/* Return the first instance of C within N bytes of S, or NULL. */
2N/A#if @GNULIB_MEMCHR@
2N/A# if @REPLACE_MEMCHR@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define memchr rpl_memchr
2N/A# endif
2N/A_GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n));
2N/A# else
2N/A# if ! @HAVE_MEMCHR@
2N/A_GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1)));
2N/A# endif
2N/A /* On some systems, this function is defined as an overloaded function:
2N/A extern "C" { const void * std::memchr (const void *, int, size_t); }
2N/A extern "C++" { void * std::memchr (void *, int, size_t); } */
2N/A_GL_CXXALIAS_SYS_CAST2 (memchr,
2N/A void *, (void const *__s, int __c, size_t __n),
2N/A void const *, (void const *__s, int __c, size_t __n));
2N/A# endif
2N/A# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \
2N/A && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
2N/A_GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n));
2N/A_GL_CXXALIASWARN1 (memchr, void const *,
2N/A (void const *__s, int __c, size_t __n));
2N/A# else
2N/A_GL_CXXALIASWARN (memchr);
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef memchr
2N/A/* Assume memchr is always declared. */
2N/A_GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
2N/A "use gnulib module memchr for portability" );
2N/A#endif
2N/A
2N/A/* Return the first occurrence of NEEDLE in HAYSTACK. */
2N/A#if @GNULIB_MEMMEM@
2N/A# if @REPLACE_MEMMEM@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define memmem rpl_memmem
2N/A# endif
2N/A_GL_FUNCDECL_RPL (memmem, void *,
2N/A (void const *__haystack, size_t __haystack_len,
2N/A void const *__needle, size_t __needle_len)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1, 3)));
2N/A_GL_CXXALIAS_RPL (memmem, void *,
2N/A (void const *__haystack, size_t __haystack_len,
2N/A void const *__needle, size_t __needle_len));
2N/A# else
2N/A# if ! @HAVE_DECL_MEMMEM@
2N/A_GL_FUNCDECL_SYS (memmem, void *,
2N/A (void const *__haystack, size_t __haystack_len,
2N/A void const *__needle, size_t __needle_len)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1, 3)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (memmem, void *,
2N/A (void const *__haystack, size_t __haystack_len,
2N/A void const *__needle, size_t __needle_len));
2N/A# endif
2N/A_GL_CXXALIASWARN (memmem);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef memmem
2N/A# if HAVE_RAW_DECL_MEMMEM
2N/A_GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - "
2N/A "use gnulib module memmem-simple for portability, "
2N/A "and module memmem for speed" );
2N/A# endif
2N/A#endif
2N/A
2N/A/* Copy N bytes of SRC to DEST, return pointer to bytes after the
2N/A last written byte. */
2N/A#if @GNULIB_MEMPCPY@
2N/A# if ! @HAVE_MEMPCPY@
2N/A#if __STDC_VERSION__ >= 199901L
2N/A_GL_FUNCDECL_SYS (mempcpy, void *,
2N/A (void *restrict __dest, void const *restrict __src,
2N/A size_t __n)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A#else
2N/A_GL_FUNCDECL_SYS (mempcpy, void *,
2N/A (void *__dest, void const *__src,
2N/A size_t __n)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A#endif
2N/A# endif
2N/A_GL_CXXALIAS_SYS (mempcpy, void *,
2N/A (void *restrict __dest, void const *restrict __src,
2N/A size_t __n));
2N/A_GL_CXXALIASWARN (mempcpy);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef mempcpy
2N/A# if HAVE_RAW_DECL_MEMPCPY
2N/A_GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - "
2N/A "use gnulib module mempcpy for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Search backwards through a block for a byte (specified as an int). */
2N/A#if @GNULIB_MEMRCHR@
2N/A# if ! @HAVE_DECL_MEMRCHR@
2N/A_GL_FUNCDECL_SYS (memrchr, void *, (void const *, int, size_t)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1)));
2N/A# endif
2N/A /* On some systems, this function is defined as an overloaded function:
2N/A extern "C++" { const void * std::memrchr (const void *, int, size_t); }
2N/A extern "C++" { void * std::memrchr (void *, int, size_t); } */
2N/A_GL_CXXALIAS_SYS_CAST2 (memrchr,
2N/A void *, (void const *, int, size_t),
2N/A void const *, (void const *, int, size_t));
2N/A# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \
2N/A && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
2N/A_GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t));
2N/A_GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t));
2N/A# else
2N/A_GL_CXXALIASWARN (memrchr);
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef memrchr
2N/A# if HAVE_RAW_DECL_MEMRCHR
2N/A_GL_WARN_ON_USE (memrchr, "memrchr is unportable - "
2N/A "use gnulib module memrchr for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Find the first occurrence of C in S. More efficient than
2N/A memchr(S,C,N), at the expense of undefined behavior if C does not
2N/A occur within N bytes. */
2N/A#if @GNULIB_RAWMEMCHR@
2N/A# if ! @HAVE_RAWMEMCHR@
2N/A_GL_FUNCDECL_SYS (rawmemchr, void *, (void const *__s, int __c_in)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1)));
2N/A# endif
2N/A /* On some systems, this function is defined as an overloaded function:
2N/A extern "C++" { const void * std::rawmemchr (const void *, int); }
2N/A extern "C++" { void * std::rawmemchr (void *, int); } */
2N/A_GL_CXXALIAS_SYS_CAST2 (rawmemchr,
2N/A void *, (void const *__s, int __c_in),
2N/A void const *, (void const *__s, int __c_in));
2N/A# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \
2N/A && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
2N/A_GL_CXXALIASWARN1 (rawmemchr, void *, (void *__s, int __c_in));
2N/A_GL_CXXALIASWARN1 (rawmemchr, void const *, (void const *__s, int __c_in));
2N/A# else
2N/A_GL_CXXALIASWARN (rawmemchr);
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef rawmemchr
2N/A# if HAVE_RAW_DECL_RAWMEMCHR
2N/A_GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - "
2N/A "use gnulib module rawmemchr for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Copy SRC to DST, returning the address of the terminating '\0' in DST. */
2N/A#if @GNULIB_STPCPY@
2N/A# if ! @HAVE_STPCPY@
2N/A_GL_FUNCDECL_SYS (stpcpy, char *,
2N/A (char *restrict __dst, char const *restrict __src)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (stpcpy, char *,
2N/A (char *restrict __dst, char const *restrict __src));
2N/A_GL_CXXALIASWARN (stpcpy);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef stpcpy
2N/A# if HAVE_RAW_DECL_STPCPY
2N/A_GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - "
2N/A "use gnulib module stpcpy for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Copy no more than N bytes of SRC to DST, returning a pointer past the
2N/A last non-NUL byte written into DST. */
2N/A#if @GNULIB_STPNCPY@
2N/A# if @REPLACE_STPNCPY@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# undef stpncpy
2N/A# define stpncpy rpl_stpncpy
2N/A# endif
2N/A_GL_FUNCDECL_RPL (stpncpy, char *,
2N/A (char *restrict __dst, char const *restrict __src,
2N/A size_t __n)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A_GL_CXXALIAS_RPL (stpncpy, char *,
2N/A (char *restrict __dst, char const *restrict __src,
2N/A size_t __n));
2N/A# else
2N/A# if ! @HAVE_STPNCPY@
2N/A_GL_FUNCDECL_SYS (stpncpy, char *,
2N/A (char *restrict __dst, char const *restrict __src,
2N/A size_t __n)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (stpncpy, char *,
2N/A (char *restrict __dst, char const *restrict __src,
2N/A size_t __n));
2N/A# endif
2N/A_GL_CXXALIASWARN (stpncpy);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef stpncpy
2N/A# if HAVE_RAW_DECL_STPNCPY
2N/A_GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
2N/A "use gnulib module stpncpy for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A#if defined GNULIB_POSIXCHECK
2N/A/* strchr() does not work with multibyte strings if the locale encoding is
2N/A GB18030 and the character to be searched is a digit. */
2N/A# undef strchr
2N/A/* Assume strchr is always declared. */
2N/A_GL_WARN_ON_USE (strchr, "strchr cannot work correctly on character strings "
2N/A "in some multibyte locales - "
2N/A "use mbschr if you care about internationalization");
2N/A#endif
2N/A
2N/A/* Find the first occurrence of C in S or the final NUL byte. */
2N/A#if @GNULIB_STRCHRNUL@
2N/A# if ! @HAVE_STRCHRNUL@
2N/A_GL_FUNCDECL_SYS (strchrnul, char *, (char const *__s, int __c_in)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1)));
2N/A# endif
2N/A /* On some systems, this function is defined as an overloaded function:
2N/A extern "C++" { const char * std::strchrnul (const char *, int); }
2N/A extern "C++" { char * std::strchrnul (char *, int); } */
2N/A_GL_CXXALIAS_SYS_CAST2 (strchrnul,
2N/A char *, (char const *__s, int __c_in),
2N/A char const *, (char const *__s, int __c_in));
2N/A# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \
2N/A && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
2N/A_GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in));
2N/A_GL_CXXALIASWARN1 (strchrnul, char const *, (char const *__s, int __c_in));
2N/A# else
2N/A_GL_CXXALIASWARN (strchrnul);
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strchrnul
2N/A# if HAVE_RAW_DECL_STRCHRNUL
2N/A_GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - "
2N/A "use gnulib module strchrnul for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Duplicate S, returning an identical malloc'd string. */
2N/A#if @GNULIB_STRDUP@
2N/A# if @REPLACE_STRDUP@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# undef strdup
2N/A# define strdup rpl_strdup
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_RPL (strdup, char *, (char const *__s));
2N/A# else
2N/A# if defined __cplusplus && defined GNULIB_NAMESPACE && defined strdup
2N/A /* strdup exists as a function and as a macro. Get rid of the macro. */
2N/A# undef strdup
2N/A# endif
2N/A# if !(@HAVE_DECL_STRDUP@ || defined strdup)
2N/A_GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (strdup, char *, (char const *__s));
2N/A# endif
2N/A_GL_CXXALIASWARN (strdup);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strdup
2N/A# if HAVE_RAW_DECL_STRDUP
2N/A_GL_WARN_ON_USE (strdup, "strdup is unportable - "
2N/A "use gnulib module strdup for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Append no more than N characters from SRC onto DEST. */
2N/A#if @GNULIB_STRNCAT@
2N/A# if @REPLACE_STRNCAT@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# undef strncat
2N/A# define strncat rpl_strncat
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n));
2N/A# else
2N/A_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n));
2N/A# endif
2N/A_GL_CXXALIASWARN (strncat);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strncat
2N/A# if HAVE_RAW_DECL_STRNCAT
2N/A_GL_WARN_ON_USE (strncat, "strncat is unportable - "
2N/A "use gnulib module strncat for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Return a newly allocated copy of at most N bytes of STRING. */
2N/A#if @GNULIB_STRNDUP@
2N/A# if @REPLACE_STRNDUP@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# undef strndup
2N/A# define strndup rpl_strndup
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n)
2N/A _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n));
2N/A# else
2N/A# if ! @HAVE_DECL_STRNDUP@
2N/A_GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n)
2N/A _GL_ARG_NONNULL ((1)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n));
2N/A# endif
2N/A_GL_CXXALIASWARN (strndup);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strndup
2N/A# if HAVE_RAW_DECL_STRNDUP
2N/A_GL_WARN_ON_USE (strndup, "strndup is unportable - "
2N/A "use gnulib module strndup for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Find the length (number of bytes) of STRING, but scan at most
2N/A MAXLEN bytes. If no '\0' terminator is found in that many bytes,
2N/A return MAXLEN. */
2N/A#if @GNULIB_STRNLEN@
2N/A# if @REPLACE_STRNLEN@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# undef strnlen
2N/A# define strnlen rpl_strnlen
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen));
2N/A# else
2N/A# if ! @HAVE_DECL_STRNLEN@
2N/A_GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen));
2N/A# endif
2N/A_GL_CXXALIASWARN (strnlen);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strnlen
2N/A# if HAVE_RAW_DECL_STRNLEN
2N/A_GL_WARN_ON_USE (strnlen, "strnlen is unportable - "
2N/A "use gnulib module strnlen for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A#if defined GNULIB_POSIXCHECK
2N/A/* strcspn() assumes the second argument is a list of single-byte characters.
2N/A Even in this simple case, it does not work with multibyte strings if the
2N/A locale encoding is GB18030 and one of the characters to be searched is a
2N/A digit. */
2N/A# undef strcspn
2N/A/* Assume strcspn is always declared. */
2N/A_GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings "
2N/A "in multibyte locales - "
2N/A "use mbscspn if you care about internationalization");
2N/A#endif
2N/A
2N/A/* Find the first occurrence in S of any character in ACCEPT. */
2N/A#if @GNULIB_STRPBRK@
2N/A# if ! @HAVE_STRPBRK@
2N/A_GL_FUNCDECL_SYS (strpbrk, char *, (char const *__s, char const *__accept)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A# endif
2N/A /* On some systems, this function is defined as an overloaded function:
2N/A extern "C" { const char * strpbrk (const char *, const char *); }
2N/A extern "C++" { char * strpbrk (char *, const char *); } */
2N/A_GL_CXXALIAS_SYS_CAST2 (strpbrk,
2N/A char *, (char const *__s, char const *__accept),
2N/A const char *, (char const *__s, char const *__accept));
2N/A# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \
2N/A && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
2N/A_GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept));
2N/A_GL_CXXALIASWARN1 (strpbrk, char const *,
2N/A (char const *__s, char const *__accept));
2N/A# else
2N/A_GL_CXXALIASWARN (strpbrk);
2N/A# endif
2N/A# if defined GNULIB_POSIXCHECK
2N/A/* strpbrk() assumes the second argument is a list of single-byte characters.
2N/A Even in this simple case, it does not work with multibyte strings if the
2N/A locale encoding is GB18030 and one of the characters to be searched is a
2N/A digit. */
2N/A# undef strpbrk
2N/A_GL_WARN_ON_USE (strpbrk, "strpbrk cannot work correctly on character strings "
2N/A "in multibyte locales - "
2N/A "use mbspbrk if you care about internationalization");
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strpbrk
2N/A# if HAVE_RAW_DECL_STRPBRK
2N/A_GL_WARN_ON_USE (strpbrk, "strpbrk is unportable - "
2N/A "use gnulib module strpbrk for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A#if defined GNULIB_POSIXCHECK
2N/A/* strspn() assumes the second argument is a list of single-byte characters.
2N/A Even in this simple case, it cannot work with multibyte strings. */
2N/A# undef strspn
2N/A/* Assume strspn is always declared. */
2N/A_GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
2N/A "in multibyte locales - "
2N/A "use mbsspn if you care about internationalization");
2N/A#endif
2N/A
2N/A#if defined GNULIB_POSIXCHECK
2N/A/* strrchr() does not work with multibyte strings if the locale encoding is
2N/A GB18030 and the character to be searched is a digit. */
2N/A# undef strrchr
2N/A/* Assume strrchr is always declared. */
2N/A_GL_WARN_ON_USE (strrchr, "strrchr cannot work correctly on character strings "
2N/A "in some multibyte locales - "
2N/A "use mbsrchr if you care about internationalization");
2N/A#endif
2N/A
2N/A/* Search the next delimiter (char listed in DELIM) starting at *STRINGP.
2N/A If one is found, overwrite it with a NUL, and advance *STRINGP
2N/A to point to the next char after it. Otherwise, set *STRINGP to NULL.
2N/A If *STRINGP was already NULL, nothing happens.
2N/A Return the old value of *STRINGP.
2N/A
2N/A This is a variant of strtok() that is multithread-safe and supports
2N/A empty fields.
2N/A
2N/A Caveat: It modifies the original string.
2N/A Caveat: These functions cannot be used on constant strings.
2N/A Caveat: The identity of the delimiting character is lost.
2N/A Caveat: It doesn't work with multibyte strings unless all of the delimiter
2N/A characters are ASCII characters < 0x30.
2N/A
2N/A See also strtok_r(). */
2N/A#if @GNULIB_STRSEP@
2N/A# if ! @HAVE_STRSEP@
2N/A_GL_FUNCDECL_SYS (strsep, char *,
2N/A (char **restrict __stringp, char const *restrict __delim)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (strsep, char *,
2N/A (char **restrict __stringp, char const *restrict __delim));
2N/A_GL_CXXALIASWARN (strsep);
2N/A# if defined GNULIB_POSIXCHECK
2N/A# undef strsep
2N/A_GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings "
2N/A "in multibyte locales - "
2N/A "use mbssep if you care about internationalization");
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strsep
2N/A# if HAVE_RAW_DECL_STRSEP
2N/A_GL_WARN_ON_USE (strsep, "strsep is unportable - "
2N/A "use gnulib module strsep for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A#if @GNULIB_STRSTR@
2N/A# if @REPLACE_STRSTR@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define strstr rpl_strstr
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A_GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle));
2N/A# else
2N/A /* On some systems, this function is defined as an overloaded function:
2N/A extern "C++" { const char * strstr (const char *, const char *); }
2N/A extern "C++" { char * strstr (char *, const char *); } */
2N/A_GL_CXXALIAS_SYS_CAST2 (strstr,
2N/A char *, (const char *haystack, const char *needle),
2N/A const char *, (const char *haystack, const char *needle));
2N/A# endif
2N/A# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \
2N/A && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
2N/A_GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle));
2N/A_GL_CXXALIASWARN1 (strstr, const char *,
2N/A (const char *haystack, const char *needle));
2N/A# else
2N/A_GL_CXXALIASWARN (strstr);
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A/* strstr() does not work with multibyte strings if the locale encoding is
2N/A different from UTF-8:
2N/A POSIX says that it operates on "strings", and "string" in POSIX is defined
2N/A as a sequence of bytes, not of characters. */
2N/A# undef strstr
2N/A/* Assume strstr is always declared. */
2N/A_GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot "
2N/A "work correctly on character strings in most "
2N/A "multibyte locales - "
2N/A "use mbsstr if you care about internationalization, "
2N/A "or use strstr if you care about speed");
2N/A#endif
2N/A
2N/A/* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive
2N/A comparison. */
2N/A#if @GNULIB_STRCASESTR@
2N/A# if @REPLACE_STRCASESTR@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define strcasestr rpl_strcasestr
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strcasestr, char *,
2N/A (const char *haystack, const char *needle)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A_GL_CXXALIAS_RPL (strcasestr, char *,
2N/A (const char *haystack, const char *needle));
2N/A# else
2N/A# if ! @HAVE_STRCASESTR@
2N/A_GL_FUNCDECL_SYS (strcasestr, char *,
2N/A (const char *haystack, const char *needle)
2N/A _GL_ATTRIBUTE_PURE
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A# endif
2N/A /* On some systems, this function is defined as an overloaded function:
2N/A extern "C++" { const char * strcasestr (const char *, const char *); }
2N/A extern "C++" { char * strcasestr (char *, const char *); } */
2N/A_GL_CXXALIAS_SYS_CAST2 (strcasestr,
2N/A char *, (const char *haystack, const char *needle),
2N/A const char *, (const char *haystack, const char *needle));
2N/A# endif
2N/A# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \
2N/A && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
2N/A_GL_CXXALIASWARN1 (strcasestr, char *, (char *haystack, const char *needle));
2N/A_GL_CXXALIASWARN1 (strcasestr, const char *,
2N/A (const char *haystack, const char *needle));
2N/A# else
2N/A_GL_CXXALIASWARN (strcasestr);
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A/* strcasestr() does not work with multibyte strings:
2N/A It is a glibc extension, and glibc implements it only for unibyte
2N/A locales. */
2N/A# undef strcasestr
2N/A# if HAVE_RAW_DECL_STRCASESTR
2N/A_GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character "
2N/A "strings in multibyte locales - "
2N/A "use mbscasestr if you care about "
2N/A "internationalization, or use c-strcasestr if you want "
2N/A "a locale independent function");
2N/A# endif
2N/A#endif
2N/A
2N/A/* Parse S into tokens separated by characters in DELIM.
2N/A If S is NULL, the saved pointer in SAVE_PTR is used as
2N/A the next starting point. For example:
2N/A char s[] = "-abc-=-def";
2N/A char *sp;
2N/A x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def"
2N/A x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL
2N/A x = strtok_r(NULL, "=", &sp); // x = NULL
2N/A // s = "abc\0-def\0"
2N/A
2N/A This is a variant of strtok() that is multithread-safe.
2N/A
2N/A For the POSIX documentation for this function, see:
2N/A http://www.opengroup.org/susv3xsh/strtok.html
2N/A
2N/A Caveat: It modifies the original string.
2N/A Caveat: These functions cannot be used on constant strings.
2N/A Caveat: The identity of the delimiting character is lost.
2N/A Caveat: It doesn't work with multibyte strings unless all of the delimiter
2N/A characters are ASCII characters < 0x30.
2N/A
2N/A See also strsep(). */
2N/A#if @GNULIB_STRTOK_R@
2N/A# if @REPLACE_STRTOK_R@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# undef strtok_r
2N/A# define strtok_r rpl_strtok_r
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strtok_r, char *,
2N/A (char *restrict s, char const *restrict delim,
2N/A char **restrict save_ptr)
2N/A _GL_ARG_NONNULL ((2, 3)));
2N/A_GL_CXXALIAS_RPL (strtok_r, char *,
2N/A (char *restrict s, char const *restrict delim,
2N/A char **restrict save_ptr));
2N/A# else
2N/A# if @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK
2N/A# undef strtok_r
2N/A# endif
2N/A# if ! @HAVE_DECL_STRTOK_R@
2N/A_GL_FUNCDECL_SYS (strtok_r, char *,
2N/A (char *restrict s, char const *restrict delim,
2N/A char **restrict save_ptr)
2N/A _GL_ARG_NONNULL ((2, 3)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (strtok_r, char *,
2N/A (char *restrict s, char const *restrict delim,
2N/A char **restrict save_ptr));
2N/A# endif
2N/A_GL_CXXALIASWARN (strtok_r);
2N/A# if defined GNULIB_POSIXCHECK
2N/A_GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character "
2N/A "strings in multibyte locales - "
2N/A "use mbstok_r if you care about internationalization");
2N/A# endif
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strtok_r
2N/A# if HAVE_RAW_DECL_STRTOK_R
2N/A_GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - "
2N/A "use gnulib module strtok_r for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A
2N/A/* The following functions are not specified by POSIX. They are gnulib
2N/A extensions. */
2N/A
2N/A#if @GNULIB_MBSLEN@
2N/A/* Return the number of multibyte characters in the character string STRING.
2N/A This considers multibyte characters, unlike strlen, which counts bytes. */
2N/A# ifdef __MirBSD__ /* MirBSD defines mbslen as a macro. Override it. */
2N/A# undef mbslen
2N/A# endif
2N/A# if @HAVE_MBSLEN@ /* AIX, OSF/1, MirBSD define mbslen already in libc. */
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define mbslen rpl_mbslen
2N/A# endif
2N/A_GL_FUNCDECL_RPL (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_RPL (mbslen, size_t, (const char *string));
2N/A# else
2N/A_GL_FUNCDECL_SYS (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_SYS (mbslen, size_t, (const char *string));
2N/A# endif
2N/A_GL_CXXALIASWARN (mbslen);
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSNLEN@
2N/A/* Return the number of multibyte characters in the character string starting
2N/A at STRING and ending at STRING + LEN. */
2N/A_GL_EXTERN_C size_t mbsnlen (const char *string, size_t len)
2N/A _GL_ARG_NONNULL ((1));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSCHR@
2N/A/* Locate the first single-byte character C in the character string STRING,
2N/A and return a pointer to it. Return NULL if C is not found in STRING.
2N/A Unlike strchr(), this function works correctly in multibyte locales with
2N/A encodings such as GB18030. */
2N/A# if defined __hpux
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define mbschr rpl_mbschr /* avoid collision with HP-UX function */
2N/A# endif
2N/A_GL_FUNCDECL_RPL (mbschr, char *, (const char *string, int c)
2N/A _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_RPL (mbschr, char *, (const char *string, int c));
2N/A# else
2N/A_GL_FUNCDECL_SYS (mbschr, char *, (const char *string, int c)
2N/A _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_SYS (mbschr, char *, (const char *string, int c));
2N/A# endif
2N/A_GL_CXXALIASWARN (mbschr);
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSRCHR@
2N/A/* Locate the last single-byte character C in the character string STRING,
2N/A and return a pointer to it. Return NULL if C is not found in STRING.
2N/A Unlike strrchr(), this function works correctly in multibyte locales with
2N/A encodings such as GB18030. */
2N/A# if defined __hpux
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */
2N/A# endif
2N/A_GL_FUNCDECL_RPL (mbsrchr, char *, (const char *string, int c)
2N/A _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_RPL (mbsrchr, char *, (const char *string, int c));
2N/A# else
2N/A_GL_FUNCDECL_SYS (mbsrchr, char *, (const char *string, int c)
2N/A _GL_ARG_NONNULL ((1)));
2N/A_GL_CXXALIAS_SYS (mbsrchr, char *, (const char *string, int c));
2N/A# endif
2N/A_GL_CXXALIASWARN (mbsrchr);
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSSTR@
2N/A/* Find the first occurrence of the character string NEEDLE in the character
2N/A string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK.
2N/A Unlike strstr(), this function works correctly in multibyte locales with
2N/A encodings different from UTF-8. */
2N/A_GL_EXTERN_C char * mbsstr (const char *haystack, const char *needle)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSCASECMP@
2N/A/* Compare the character strings S1 and S2, ignoring case, returning less than,
2N/A equal to or greater than zero if S1 is lexicographically less than, equal to
2N/A or greater than S2.
2N/A Note: This function may, in multibyte locales, return 0 for strings of
2N/A different lengths!
2N/A Unlike strcasecmp(), this function works correctly in multibyte locales. */
2N/A_GL_EXTERN_C int mbscasecmp (const char *s1, const char *s2)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSNCASECMP@
2N/A/* Compare the initial segment of the character string S1 consisting of at most
2N/A N characters with the initial segment of the character string S2 consisting
2N/A of at most N characters, ignoring case, returning less than, equal to or
2N/A greater than zero if the initial segment of S1 is lexicographically less
2N/A than, equal to or greater than the initial segment of S2.
2N/A Note: This function may, in multibyte locales, return 0 for initial segments
2N/A of different lengths!
2N/A Unlike strncasecmp(), this function works correctly in multibyte locales.
2N/A But beware that N is not a byte count but a character count! */
2N/A_GL_EXTERN_C int mbsncasecmp (const char *s1, const char *s2, size_t n)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSPCASECMP@
2N/A/* Compare the initial segment of the character string STRING consisting of
2N/A at most mbslen (PREFIX) characters with the character string PREFIX,
2N/A ignoring case. If the two match, return a pointer to the first byte
2N/A after this prefix in STRING. Otherwise, return NULL.
2N/A Note: This function may, in multibyte locales, return non-NULL if STRING
2N/A is of smaller length than PREFIX!
2N/A Unlike strncasecmp(), this function works correctly in multibyte
2N/A locales. */
2N/A_GL_EXTERN_C char * mbspcasecmp (const char *string, const char *prefix)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSCASESTR@
2N/A/* Find the first occurrence of the character string NEEDLE in the character
2N/A string HAYSTACK, using case-insensitive comparison.
2N/A Note: This function may, in multibyte locales, return success even if
2N/A strlen (haystack) < strlen (needle) !
2N/A Unlike strcasestr(), this function works correctly in multibyte locales. */
2N/A_GL_EXTERN_C char * mbscasestr (const char *haystack, const char *needle)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSCSPN@
2N/A/* Find the first occurrence in the character string STRING of any character
2N/A in the character string ACCEPT. Return the number of bytes from the
2N/A beginning of the string to this occurrence, or to the end of the string
2N/A if none exists.
2N/A Unlike strcspn(), this function works correctly in multibyte locales. */
2N/A_GL_EXTERN_C size_t mbscspn (const char *string, const char *accept)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSPBRK@
2N/A/* Find the first occurrence in the character string STRING of any character
2N/A in the character string ACCEPT. Return the pointer to it, or NULL if none
2N/A exists.
2N/A Unlike strpbrk(), this function works correctly in multibyte locales. */
2N/A# if defined __hpux
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */
2N/A# endif
2N/A_GL_FUNCDECL_RPL (mbspbrk, char *, (const char *string, const char *accept)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A_GL_CXXALIAS_RPL (mbspbrk, char *, (const char *string, const char *accept));
2N/A# else
2N/A_GL_FUNCDECL_SYS (mbspbrk, char *, (const char *string, const char *accept)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A_GL_CXXALIAS_SYS (mbspbrk, char *, (const char *string, const char *accept));
2N/A# endif
2N/A_GL_CXXALIASWARN (mbspbrk);
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSSPN@
2N/A/* Find the first occurrence in the character string STRING of any character
2N/A not in the character string REJECT. Return the number of bytes from the
2N/A beginning of the string to this occurrence, or to the end of the string
2N/A if none exists.
2N/A Unlike strspn(), this function works correctly in multibyte locales. */
2N/A_GL_EXTERN_C size_t mbsspn (const char *string, const char *reject)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSSEP@
2N/A/* Search the next delimiter (multibyte character listed in the character
2N/A string DELIM) starting at the character string *STRINGP.
2N/A If one is found, overwrite it with a NUL, and advance *STRINGP to point
2N/A to the next multibyte character after it. Otherwise, set *STRINGP to NULL.
2N/A If *STRINGP was already NULL, nothing happens.
2N/A Return the old value of *STRINGP.
2N/A
2N/A This is a variant of mbstok_r() that supports empty fields.
2N/A
2N/A Caveat: It modifies the original string.
2N/A Caveat: These functions cannot be used on constant strings.
2N/A Caveat: The identity of the delimiting character is lost.
2N/A
2N/A See also mbstok_r(). */
2N/A_GL_EXTERN_C char * mbssep (char **stringp, const char *delim)
2N/A _GL_ARG_NONNULL ((1, 2));
2N/A#endif
2N/A
2N/A#if @GNULIB_MBSTOK_R@
2N/A/* Parse the character string STRING into tokens separated by characters in
2N/A the character string DELIM.
2N/A If STRING is NULL, the saved pointer in SAVE_PTR is used as
2N/A the next starting point. For example:
2N/A char s[] = "-abc-=-def";
2N/A char *sp;
2N/A x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def"
2N/A x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL
2N/A x = mbstok_r(NULL, "=", &sp); // x = NULL
2N/A // s = "abc\0-def\0"
2N/A
2N/A Caveat: It modifies the original string.
2N/A Caveat: These functions cannot be used on constant strings.
2N/A Caveat: The identity of the delimiting character is lost.
2N/A
2N/A See also mbssep(). */
2N/A_GL_EXTERN_C char * mbstok_r (char *string, const char *delim, char **save_ptr)
2N/A _GL_ARG_NONNULL ((2, 3));
2N/A#endif
2N/A
2N/A/* Map any int, typically from errno, into an error message. */
2N/A#if @GNULIB_STRERROR@
2N/A# if @REPLACE_STRERROR@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# undef strerror
2N/A# define strerror rpl_strerror
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strerror, char *, (int));
2N/A_GL_CXXALIAS_RPL (strerror, char *, (int));
2N/A# else
2N/A_GL_CXXALIAS_SYS (strerror, char *, (int));
2N/A# endif
2N/A_GL_CXXALIASWARN (strerror);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strerror
2N/A/* Assume strerror is always declared. */
2N/A_GL_WARN_ON_USE (strerror, "strerror is unportable - "
2N/A "use gnulib module strerror to guarantee non-NULL result");
2N/A#endif
2N/A
2N/A#if @GNULIB_STRSIGNAL@
2N/A# if @REPLACE_STRSIGNAL@
2N/A# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2N/A# define strsignal rpl_strsignal
2N/A# endif
2N/A_GL_FUNCDECL_RPL (strsignal, char *, (int __sig));
2N/A_GL_CXXALIAS_RPL (strsignal, char *, (int __sig));
2N/A# else
2N/A# if ! @HAVE_DECL_STRSIGNAL@
2N/A_GL_FUNCDECL_SYS (strsignal, char *, (int __sig));
2N/A# endif
2N/A/* Need to cast, because on Cygwin 1.5.x systems, the return type is
2N/A 'const char *'. */
2N/A_GL_CXXALIAS_SYS_CAST (strsignal, char *, (int __sig));
2N/A# endif
2N/A_GL_CXXALIASWARN (strsignal);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strsignal
2N/A# if HAVE_RAW_DECL_STRSIGNAL
2N/A_GL_WARN_ON_USE (strsignal, "strsignal is unportable - "
2N/A "use gnulib module strsignal for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A#if @GNULIB_STRVERSCMP@
2N/A# if !@HAVE_STRVERSCMP@
2N/A_GL_FUNCDECL_SYS (strverscmp, int, (const char *, const char *)
2N/A _GL_ARG_NONNULL ((1, 2)));
2N/A# endif
2N/A_GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *));
2N/A_GL_CXXALIASWARN (strverscmp);
2N/A#elif defined GNULIB_POSIXCHECK
2N/A# undef strverscmp
2N/A# if HAVE_RAW_DECL_STRVERSCMP
2N/A_GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - "
2N/A "use gnulib module strverscmp for portability");
2N/A# endif
2N/A#endif
2N/A
2N/A
2N/A#endif /* _GL_STRING_H */
2N/A#endif /* _GL_STRING_H */