maint: update copyright
[gnulib.git] / tests / test-string-c++.cc
1 /* Test of <string.h> substitute in C++ mode.
2    Copyright (C) 2010-2014 Free Software Foundation, Inc.
3
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.
8
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.
13
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/>.  */
16
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
18
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
21
22 #include <string.h>
23
24 #include "signature.h"
25
26
27 #if GNULIB_TEST_MEMCHR
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::memchr, void *,
29                  (void const *, int, size_t));
30 #endif
31
32 //SIGNATURE_CHECK (GNULIB_NAMESPACE::memcmp, int,
33 //                 (void const *, void const *, size_t));
34
35 #if GNULIB_TEST_MEMMEM
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::memmem, void *,
37                  (void const *, size_t, void const *, size_t));
38 #endif
39
40 #if GNULIB_TEST_MEMPCPY
41 SIGNATURE_CHECK (GNULIB_NAMESPACE::mempcpy, void *,
42                  (void *, void const *, size_t));
43 #endif
44
45 #if GNULIB_TEST_MEMRCHR
46 SIGNATURE_CHECK (GNULIB_NAMESPACE::memrchr, void *,
47                  (void const *, int, size_t));
48 #endif
49
50 #if GNULIB_TEST_RAWMEMCHR
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::rawmemchr, void *, (void const *, int));
52 #endif
53
54 #if GNULIB_TEST_STPCPY
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::stpcpy, char *, (char *, char const *));
56 #endif
57
58 #if GNULIB_TEST_STPNCPY
59 SIGNATURE_CHECK (GNULIB_NAMESPACE::stpncpy, char *,
60                  (char *, char const *, size_t));
61 #endif
62
63 #if GNULIB_TEST_STRCHRNUL
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::strchrnul, char *, (char const *, int));
65 #endif
66
67 #if GNULIB_TEST_STRDUP
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::strdup, char *, (char const *));
69 #endif
70
71 #if GNULIB_TEST_STRNCAT
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::strncat, char *,
73                  (char *, const char *, size_t));
74 #endif
75
76 #if GNULIB_TEST_STRNDUP
77 SIGNATURE_CHECK (GNULIB_NAMESPACE::strndup, char *, (char const *, size_t));
78 #endif
79
80 #if GNULIB_TEST_STRNLEN
81 SIGNATURE_CHECK (GNULIB_NAMESPACE::strnlen, size_t, (char const *, size_t));
82 #endif
83
84 #if GNULIB_TEST_STRPBRK
85 SIGNATURE_CHECK (GNULIB_NAMESPACE::strpbrk, char *,
86                  (char const *, char const *));
87 #endif
88
89 #if GNULIB_TEST_STRSEP
90 SIGNATURE_CHECK (GNULIB_NAMESPACE::strsep, char *, (char **, char const *));
91 #endif
92
93 #if GNULIB_TEST_STRSTR
94 SIGNATURE_CHECK (GNULIB_NAMESPACE::strstr, char *,
95                  (const char *, const char *));
96 #endif
97
98 #if GNULIB_TEST_STRCASESTR
99 SIGNATURE_CHECK (GNULIB_NAMESPACE::strcasestr, char *,
100                  (const char *, const char *));
101 #endif
102
103 #if GNULIB_TEST_STRTOK_R
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtok_r, char *,
105                  (char *, char const *, char **));
106 #endif
107
108 #if GNULIB_TEST_MBSLEN
109 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbslen, size_t, (const char *));
110 #endif
111
112 #if GNULIB_TEST_MBSCHR
113 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbschr, char *, (const char *, int));
114 #endif
115
116 #if GNULIB_TEST_MBSRCHR
117 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsrchr, char *, (const char *, int));
118 #endif
119
120 #if GNULIB_TEST_MBSPBRK
121 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbspbrk, char *,
122                  (const char *, const char *));
123 #endif
124
125 #if GNULIB_TEST_STRERROR
126 SIGNATURE_CHECK (GNULIB_NAMESPACE::strerror, char *, (int));
127 #endif
128
129 #if GNULIB_TEST_STRERROR_R
130 SIGNATURE_CHECK (GNULIB_NAMESPACE::strerror_r, int, (int, char *, size_t));
131 #endif
132
133 #if GNULIB_TEST_STRSIGNAL
134 SIGNATURE_CHECK (GNULIB_NAMESPACE::strsignal, char *, (int));
135 #endif
136
137 #if GNULIB_TEST_STRVERSCMP
138 SIGNATURE_CHECK (GNULIB_NAMESPACE::strverscmp, int,
139                  (const char *, const char *));
140 #endif
141
142
143 int
144 main ()
145 {
146 }