1 /* Test of <string.h> substitute in C++ mode.
2 Copyright (C) 2010 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
24 #include "signature.h"
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::memchr, void *,
29 (void const *, int, size_t));
32 //SIGNATURE_CHECK (GNULIB_NAMESPACE::memcmp, int,
33 // (void const *, void const *, size_t));
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::memmem, void *,
37 (void const *, size_t, void const *, size_t));
41 SIGNATURE_CHECK (GNULIB_NAMESPACE::mempcpy, void *,
42 (void *, void const *, size_t));
46 SIGNATURE_CHECK (GNULIB_NAMESPACE::memrchr, void *,
47 (void const *, int, size_t));
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::rawmemchr, void *, (void const *, int));
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::stpcpy, char *, (char *, char const *));
59 SIGNATURE_CHECK (GNULIB_NAMESPACE::stpncpy, char *,
60 (char *, char const *, size_t));
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::strchrnul, char *, (char const *, int));
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::strdup, char *, (char const *));
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::strndup, char *, (char const *, size_t));
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::strnlen, size_t, (char const *, size_t));
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::strpbrk, char *,
81 (char const *, char const *));
85 SIGNATURE_CHECK (GNULIB_NAMESPACE::strsep, char *, (char **, char const *));
89 SIGNATURE_CHECK (GNULIB_NAMESPACE::strstr, char *,
90 (const char *, const char *));
94 SIGNATURE_CHECK (GNULIB_NAMESPACE::strcasestr, char *,
95 (const char *, const char *));
99 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtok_r, char *,
100 (char *, char const *, char **));
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbslen, size_t, (const char *));
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbschr, char *, (const char *, int));
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsrchr, char *, (const char *, int));
116 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbspbrk, char *,
117 (const char *, const char *));
121 SIGNATURE_CHECK (GNULIB_NAMESPACE::strerror, char *, (int));
125 SIGNATURE_CHECK (GNULIB_NAMESPACE::strsignal, char *, (int));
128 #if GNULIB_STRVERSCMP
129 SIGNATURE_CHECK (GNULIB_NAMESPACE::strverscmp, int,
130 (const char *, const char *));