Avoid some "gcc -pedantic" warnings.
[pspp] / lib / string.in.h
1 /* A GNU-like <string.h>.
2
3    Copyright (C) 1995-1996, 2001-2008 Free Software Foundation, Inc.
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2, or (at your option)
8    any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software Foundation,
17    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18
19 #ifndef _GL_STRING_H
20
21 @PRAGMA_SYSTEM_HEADER@
22
23 /* The include_next requires a split double-inclusion guard.  */
24 #@INCLUDE_NEXT@ @NEXT_STRING_H@
25
26 #ifndef _GL_STRING_H
27 #define _GL_STRING_H
28
29
30 #ifndef __attribute__
31 /* This feature is available in gcc versions 2.5 and later.  */
32 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
33 #  define __attribute__(Spec) /* empty */
34 # endif
35 /* The attribute __pure__ was added in gcc 2.96.  */
36 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
37 #  define __pure__ /* empty */
38 # endif
39 #endif
40
41
42 /* The definition of GL_LINK_WARNING is copied here.  */
43
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49
50 /* Return the first occurrence of NEEDLE in HAYSTACK.  */
51 #if @GNULIB_MEMMEM@
52 # if @REPLACE_MEMMEM@
53 #  define memmem rpl_memmem
54 # endif
55 # if ! @HAVE_DECL_MEMMEM@ || @REPLACE_MEMMEM@
56 extern void *memmem (void const *__haystack, size_t __haystack_len,
57                      void const *__needle, size_t __needle_len)
58   __attribute__ ((__pure__));
59 # endif
60 #elif defined GNULIB_POSIXCHECK
61 # undef memmem
62 # define memmem(a,al,b,bl) \
63     (GL_LINK_WARNING ("memmem is unportable and often quadratic - " \
64                       "use gnulib module memmem-simple for portability, " \
65                       "and module memmem for speed" ), \
66      memmem (a, al, b, bl))
67 #endif
68
69 /* Copy N bytes of SRC to DEST, return pointer to bytes after the
70    last written byte.  */
71 #if @GNULIB_MEMPCPY@
72 # if ! @HAVE_MEMPCPY@
73 extern void *mempcpy (void *restrict __dest, void const *restrict __src,
74                       size_t __n);
75 # endif
76 #elif defined GNULIB_POSIXCHECK
77 # undef mempcpy
78 # define mempcpy(a,b,n) \
79     (GL_LINK_WARNING ("mempcpy is unportable - " \
80                       "use gnulib module mempcpy for portability"), \
81      mempcpy (a, b, n))
82 #endif
83
84 /* Search backwards through a block for a byte (specified as an int).  */
85 #if @GNULIB_MEMRCHR@
86 # if ! @HAVE_DECL_MEMRCHR@
87 extern void *memrchr (void const *, int, size_t)
88   __attribute__ ((__pure__));
89 # endif
90 #elif defined GNULIB_POSIXCHECK
91 # undef memrchr
92 # define memrchr(a,b,c) \
93     (GL_LINK_WARNING ("memrchr is unportable - " \
94                       "use gnulib module memrchr for portability"), \
95      memrchr (a, b, c))
96 #endif
97
98 /* Find the first occurrence of C in S.  More efficient than
99    memchr(S,C,N), at the expense of undefined behavior if C does not
100    occur within N bytes.  */
101 #if @GNULIB_RAWMEMCHR@
102 # if ! @HAVE_RAWMEMCHR@
103 extern void *rawmemchr (void const *__s, int __c_in)
104   __attribute__ ((__pure__));
105 # endif
106 #elif defined GNULIB_POSIXCHECK
107 # undef rawmemchr
108 # define rawmemchr(a,b) \
109     (GL_LINK_WARNING ("rawmemchr is unportable - " \
110                       "use gnulib module rawmemchr for portability"), \
111      rawmemchr (a, b))
112 #endif
113
114 /* Copy SRC to DST, returning the address of the terminating '\0' in DST.  */
115 #if @GNULIB_STPCPY@
116 # if ! @HAVE_STPCPY@
117 extern char *stpcpy (char *restrict __dst, char const *restrict __src);
118 # endif
119 #elif defined GNULIB_POSIXCHECK
120 # undef stpcpy
121 # define stpcpy(a,b) \
122     (GL_LINK_WARNING ("stpcpy is unportable - " \
123                       "use gnulib module stpcpy for portability"), \
124      stpcpy (a, b))
125 #endif
126
127 /* Copy no more than N bytes of SRC to DST, returning a pointer past the
128    last non-NUL byte written into DST.  */
129 #if @GNULIB_STPNCPY@
130 # if ! @HAVE_STPNCPY@
131 #  define stpncpy gnu_stpncpy
132 extern char *stpncpy (char *restrict __dst, char const *restrict __src,
133                       size_t __n);
134 # endif
135 #elif defined GNULIB_POSIXCHECK
136 # undef stpncpy
137 # define stpncpy(a,b,n) \
138     (GL_LINK_WARNING ("stpncpy is unportable - " \
139                       "use gnulib module stpncpy for portability"), \
140      stpncpy (a, b, n))
141 #endif
142
143 #if defined GNULIB_POSIXCHECK
144 /* strchr() does not work with multibyte strings if the locale encoding is
145    GB18030 and the character to be searched is a digit.  */
146 # undef strchr
147 # define strchr(s,c) \
148     (GL_LINK_WARNING ("strchr cannot work correctly on character strings " \
149                       "in some multibyte locales - " \
150                       "use mbschr if you care about internationalization"), \
151      strchr (s, c))
152 #endif
153
154 /* Find the first occurrence of C in S or the final NUL byte.  */
155 #if @GNULIB_STRCHRNUL@
156 # if ! @HAVE_STRCHRNUL@
157 extern char *strchrnul (char const *__s, int __c_in)
158   __attribute__ ((__pure__));
159 # endif
160 #elif defined GNULIB_POSIXCHECK
161 # undef strchrnul
162 # define strchrnul(a,b) \
163     (GL_LINK_WARNING ("strchrnul is unportable - " \
164                       "use gnulib module strchrnul for portability"), \
165      strchrnul (a, b))
166 #endif
167
168 /* Duplicate S, returning an identical malloc'd string.  */
169 #if @GNULIB_STRDUP@
170 # if ! @HAVE_DECL_STRDUP@ && ! defined strdup
171 extern char *strdup (char const *__s);
172 # endif
173 #elif defined GNULIB_POSIXCHECK
174 # undef strdup
175 # define strdup(a) \
176     (GL_LINK_WARNING ("strdup is unportable - " \
177                       "use gnulib module strdup for portability"), \
178      strdup (a))
179 #endif
180
181 /* Return a newly allocated copy of at most N bytes of STRING.  */
182 #if @GNULIB_STRNDUP@
183 # if ! @HAVE_STRNDUP@
184 #  undef strndup
185 #  define strndup rpl_strndup
186 # endif
187 # if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@
188 extern char *strndup (char const *__string, size_t __n);
189 # endif
190 #elif defined GNULIB_POSIXCHECK
191 # undef strndup
192 # define strndup(a,n) \
193     (GL_LINK_WARNING ("strndup is unportable - " \
194                       "use gnulib module strndup for portability"), \
195      strndup (a, n))
196 #endif
197
198 /* Find the length (number of bytes) of STRING, but scan at most
199    MAXLEN bytes.  If no '\0' terminator is found in that many bytes,
200    return MAXLEN.  */
201 #if @GNULIB_STRNLEN@
202 # if ! @HAVE_DECL_STRNLEN@
203 extern size_t strnlen (char const *__string, size_t __maxlen)
204   __attribute__ ((__pure__));
205 # endif
206 #elif defined GNULIB_POSIXCHECK
207 # undef strnlen
208 # define strnlen(a,n) \
209     (GL_LINK_WARNING ("strnlen is unportable - " \
210                       "use gnulib module strnlen for portability"), \
211      strnlen (a, n))
212 #endif
213
214 #if defined GNULIB_POSIXCHECK
215 /* strcspn() assumes the second argument is a list of single-byte characters.
216    Even in this simple case, it does not work with multibyte strings if the
217    locale encoding is GB18030 and one of the characters to be searched is a
218    digit.  */
219 # undef strcspn
220 # define strcspn(s,a) \
221     (GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \
222                       "in multibyte locales - " \
223                       "use mbscspn if you care about internationalization"), \
224      strcspn (s, a))
225 #endif
226
227 /* Find the first occurrence in S of any character in ACCEPT.  */
228 #if @GNULIB_STRPBRK@
229 # if ! @HAVE_STRPBRK@
230 extern char *strpbrk (char const *__s, char const *__accept)
231   __attribute__ ((__pure__));
232 # endif
233 # if defined GNULIB_POSIXCHECK
234 /* strpbrk() assumes the second argument is a list of single-byte characters.
235    Even in this simple case, it does not work with multibyte strings if the
236    locale encoding is GB18030 and one of the characters to be searched is a
237    digit.  */
238 #  undef strpbrk
239 #  define strpbrk(s,a) \
240      (GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \
241                        "in multibyte locales - " \
242                        "use mbspbrk if you care about internationalization"), \
243       strpbrk (s, a))
244 # endif
245 #elif defined GNULIB_POSIXCHECK
246 # undef strpbrk
247 # define strpbrk(s,a) \
248     (GL_LINK_WARNING ("strpbrk is unportable - " \
249                       "use gnulib module strpbrk for portability"), \
250      strpbrk (s, a))
251 #endif
252
253 #if defined GNULIB_POSIXCHECK
254 /* strspn() assumes the second argument is a list of single-byte characters.
255    Even in this simple case, it cannot work with multibyte strings.  */
256 # undef strspn
257 # define strspn(s,a) \
258     (GL_LINK_WARNING ("strspn cannot work correctly on character strings " \
259                       "in multibyte locales - " \
260                       "use mbsspn if you care about internationalization"), \
261      strspn (s, a))
262 #endif
263
264 #if defined GNULIB_POSIXCHECK
265 /* strrchr() does not work with multibyte strings if the locale encoding is
266    GB18030 and the character to be searched is a digit.  */
267 # undef strrchr
268 # define strrchr(s,c) \
269     (GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \
270                       "in some multibyte locales - " \
271                       "use mbsrchr if you care about internationalization"), \
272      strrchr (s, c))
273 #endif
274
275 /* Search the next delimiter (char listed in DELIM) starting at *STRINGP.
276    If one is found, overwrite it with a NUL, and advance *STRINGP
277    to point to the next char after it.  Otherwise, set *STRINGP to NULL.
278    If *STRINGP was already NULL, nothing happens.
279    Return the old value of *STRINGP.
280
281    This is a variant of strtok() that is multithread-safe and supports
282    empty fields.
283
284    Caveat: It modifies the original string.
285    Caveat: These functions cannot be used on constant strings.
286    Caveat: The identity of the delimiting character is lost.
287    Caveat: It doesn't work with multibyte strings unless all of the delimiter
288            characters are ASCII characters < 0x30.
289
290    See also strtok_r().  */
291 #if @GNULIB_STRSEP@
292 # if ! @HAVE_STRSEP@
293 extern char *strsep (char **restrict __stringp, char const *restrict __delim);
294 # endif
295 # if defined GNULIB_POSIXCHECK
296 #  undef strsep
297 #  define strsep(s,d) \
298      (GL_LINK_WARNING ("strsep cannot work correctly on character strings " \
299                        "in multibyte locales - " \
300                        "use mbssep if you care about internationalization"), \
301       strsep (s, d))
302 # endif
303 #elif defined GNULIB_POSIXCHECK
304 # undef strsep
305 # define strsep(s,d) \
306     (GL_LINK_WARNING ("strsep is unportable - " \
307                       "use gnulib module strsep for portability"), \
308      strsep (s, d))
309 #endif
310
311 #if @GNULIB_STRSTR@
312 # if @REPLACE_STRSTR@
313 #  define strstr rpl_strstr
314 char *strstr (const char *haystack, const char *needle)
315   __attribute__ ((__pure__));
316 # endif
317 #elif defined GNULIB_POSIXCHECK
318 /* strstr() does not work with multibyte strings if the locale encoding is
319    different from UTF-8:
320    POSIX says that it operates on "strings", and "string" in POSIX is defined
321    as a sequence of bytes, not of characters.  */
322 # undef strstr
323 # define strstr(a,b) \
324     (GL_LINK_WARNING ("strstr is quadratic on many systems, and cannot " \
325                       "work correctly on character strings in most "    \
326                       "multibyte locales - " \
327                       "use mbsstr if you care about internationalization, " \
328                       "or use strstr if you care about speed"), \
329      strstr (a, b))
330 #endif
331
332 /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive
333    comparison.  */
334 #if @GNULIB_STRCASESTR@
335 # if @REPLACE_STRCASESTR@
336 #  define strcasestr rpl_strcasestr
337 # endif
338 # if ! @HAVE_STRCASESTR@ || @REPLACE_STRCASESTR@
339 extern char *strcasestr (const char *haystack, const char *needle)
340   __attribute__ ((__pure__));
341 # endif
342 #elif defined GNULIB_POSIXCHECK
343 /* strcasestr() does not work with multibyte strings:
344    It is a glibc extension, and glibc implements it only for unibyte
345    locales.  */
346 # undef strcasestr
347 # define strcasestr(a,b) \
348     (GL_LINK_WARNING ("strcasestr does work correctly on character strings " \
349                       "in multibyte locales - " \
350                       "use mbscasestr if you care about " \
351                       "internationalization, or use c-strcasestr if you want " \
352                       "a locale independent function"), \
353      strcasestr (a, b))
354 #endif
355
356 /* Parse S into tokens separated by characters in DELIM.
357    If S is NULL, the saved pointer in SAVE_PTR is used as
358    the next starting point.  For example:
359         char s[] = "-abc-=-def";
360         char *sp;
361         x = strtok_r(s, "-", &sp);      // x = "abc", sp = "=-def"
362         x = strtok_r(NULL, "-=", &sp);  // x = "def", sp = NULL
363         x = strtok_r(NULL, "=", &sp);   // x = NULL
364                 // s = "abc\0-def\0"
365
366    This is a variant of strtok() that is multithread-safe.
367
368    For the POSIX documentation for this function, see:
369    http://www.opengroup.org/susv3xsh/strtok.html
370
371    Caveat: It modifies the original string.
372    Caveat: These functions cannot be used on constant strings.
373    Caveat: The identity of the delimiting character is lost.
374    Caveat: It doesn't work with multibyte strings unless all of the delimiter
375            characters are ASCII characters < 0x30.
376
377    See also strsep().  */
378 #if @GNULIB_STRTOK_R@
379 # if ! @HAVE_DECL_STRTOK_R@
380 extern char *strtok_r (char *restrict s, char const *restrict delim,
381                        char **restrict save_ptr);
382 # endif
383 # if defined GNULIB_POSIXCHECK
384 #  undef strtok_r
385 #  define strtok_r(s,d,p) \
386      (GL_LINK_WARNING ("strtok_r cannot work correctly on character strings " \
387                        "in multibyte locales - " \
388                        "use mbstok_r if you care about internationalization"), \
389       strtok_r (s, d, p))
390 # endif
391 #elif defined GNULIB_POSIXCHECK
392 # undef strtok_r
393 # define strtok_r(s,d,p) \
394     (GL_LINK_WARNING ("strtok_r is unportable - " \
395                       "use gnulib module strtok_r for portability"), \
396      strtok_r (s, d, p))
397 #endif
398
399
400 /* The following functions are not specified by POSIX.  They are gnulib
401    extensions.  */
402
403 #if @GNULIB_MBSLEN@
404 /* Return the number of multibyte characters in the character string STRING.
405    This considers multibyte characters, unlike strlen, which counts bytes.  */
406 extern size_t mbslen (const char *string);
407 #endif
408
409 #if @GNULIB_MBSNLEN@
410 /* Return the number of multibyte characters in the character string starting
411    at STRING and ending at STRING + LEN.  */
412 extern size_t mbsnlen (const char *string, size_t len);
413 #endif
414
415 #if @GNULIB_MBSCHR@
416 /* Locate the first single-byte character C in the character string STRING,
417    and return a pointer to it.  Return NULL if C is not found in STRING.
418    Unlike strchr(), this function works correctly in multibyte locales with
419    encodings such as GB18030.  */
420 # define mbschr rpl_mbschr /* avoid collision with HP-UX function */
421 extern char * mbschr (const char *string, int c);
422 #endif
423
424 #if @GNULIB_MBSRCHR@
425 /* Locate the last single-byte character C in the character string STRING,
426    and return a pointer to it.  Return NULL if C is not found in STRING.
427    Unlike strrchr(), this function works correctly in multibyte locales with
428    encodings such as GB18030.  */
429 # define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */
430 extern char * mbsrchr (const char *string, int c);
431 #endif
432
433 #if @GNULIB_MBSSTR@
434 /* Find the first occurrence of the character string NEEDLE in the character
435    string HAYSTACK.  Return NULL if NEEDLE is not found in HAYSTACK.
436    Unlike strstr(), this function works correctly in multibyte locales with
437    encodings different from UTF-8.  */
438 extern char * mbsstr (const char *haystack, const char *needle);
439 #endif
440
441 #if @GNULIB_MBSCASECMP@
442 /* Compare the character strings S1 and S2, ignoring case, returning less than,
443    equal to or greater than zero if S1 is lexicographically less than, equal to
444    or greater than S2.
445    Note: This function may, in multibyte locales, return 0 for strings of
446    different lengths!
447    Unlike strcasecmp(), this function works correctly in multibyte locales.  */
448 extern int mbscasecmp (const char *s1, const char *s2);
449 #endif
450
451 #if @GNULIB_MBSNCASECMP@
452 /* Compare the initial segment of the character string S1 consisting of at most
453    N characters with the initial segment of the character string S2 consisting
454    of at most N characters, ignoring case, returning less than, equal to or
455    greater than zero if the initial segment of S1 is lexicographically less
456    than, equal to or greater than the initial segment of S2.
457    Note: This function may, in multibyte locales, return 0 for initial segments
458    of different lengths!
459    Unlike strncasecmp(), this function works correctly in multibyte locales.
460    But beware that N is not a byte count but a character count!  */
461 extern int mbsncasecmp (const char *s1, const char *s2, size_t n);
462 #endif
463
464 #if @GNULIB_MBSPCASECMP@
465 /* Compare the initial segment of the character string STRING consisting of
466    at most mbslen (PREFIX) characters with the character string PREFIX,
467    ignoring case, returning less than, equal to or greater than zero if this
468    initial segment is lexicographically less than, equal to or greater than
469    PREFIX.
470    Note: This function may, in multibyte locales, return 0 if STRING is of
471    smaller length than PREFIX!
472    Unlike strncasecmp(), this function works correctly in multibyte
473    locales.  */
474 extern char * mbspcasecmp (const char *string, const char *prefix);
475 #endif
476
477 #if @GNULIB_MBSCASESTR@
478 /* Find the first occurrence of the character string NEEDLE in the character
479    string HAYSTACK, using case-insensitive comparison.
480    Note: This function may, in multibyte locales, return success even if
481    strlen (haystack) < strlen (needle) !
482    Unlike strcasestr(), this function works correctly in multibyte locales.  */
483 extern char * mbscasestr (const char *haystack, const char *needle);
484 #endif
485
486 #if @GNULIB_MBSCSPN@
487 /* Find the first occurrence in the character string STRING of any character
488    in the character string ACCEPT.  Return the number of bytes from the
489    beginning of the string to this occurrence, or to the end of the string
490    if none exists.
491    Unlike strcspn(), this function works correctly in multibyte locales.  */
492 extern size_t mbscspn (const char *string, const char *accept);
493 #endif
494
495 #if @GNULIB_MBSPBRK@
496 /* Find the first occurrence in the character string STRING of any character
497    in the character string ACCEPT.  Return the pointer to it, or NULL if none
498    exists.
499    Unlike strpbrk(), this function works correctly in multibyte locales.  */
500 # define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */
501 extern char * mbspbrk (const char *string, const char *accept);
502 #endif
503
504 #if @GNULIB_MBSSPN@
505 /* Find the first occurrence in the character string STRING of any character
506    not in the character string REJECT.  Return the number of bytes from the
507    beginning of the string to this occurrence, or to the end of the string
508    if none exists.
509    Unlike strspn(), this function works correctly in multibyte locales.  */
510 extern size_t mbsspn (const char *string, const char *reject);
511 #endif
512
513 #if @GNULIB_MBSSEP@
514 /* Search the next delimiter (multibyte character listed in the character
515    string DELIM) starting at the character string *STRINGP.
516    If one is found, overwrite it with a NUL, and advance *STRINGP to point
517    to the next multibyte character after it.  Otherwise, set *STRINGP to NULL.
518    If *STRINGP was already NULL, nothing happens.
519    Return the old value of *STRINGP.
520
521    This is a variant of mbstok_r() that supports empty fields.
522
523    Caveat: It modifies the original string.
524    Caveat: These functions cannot be used on constant strings.
525    Caveat: The identity of the delimiting character is lost.
526
527    See also mbstok_r().  */
528 extern char * mbssep (char **stringp, const char *delim);
529 #endif
530
531 #if @GNULIB_MBSTOK_R@
532 /* Parse the character string STRING into tokens separated by characters in
533    the character string DELIM.
534    If STRING is NULL, the saved pointer in SAVE_PTR is used as
535    the next starting point.  For example:
536         char s[] = "-abc-=-def";
537         char *sp;
538         x = mbstok_r(s, "-", &sp);      // x = "abc", sp = "=-def"
539         x = mbstok_r(NULL, "-=", &sp);  // x = "def", sp = NULL
540         x = mbstok_r(NULL, "=", &sp);   // x = NULL
541                 // s = "abc\0-def\0"
542
543    Caveat: It modifies the original string.
544    Caveat: These functions cannot be used on constant strings.
545    Caveat: The identity of the delimiting character is lost.
546
547    See also mbssep().  */
548 extern char * mbstok_r (char *string, const char *delim, char **save_ptr);
549 #endif
550
551 /* Map any int, typically from errno, into an error message.  */
552 #if @GNULIB_STRERROR@
553 # if @REPLACE_STRERROR@
554 #  undef strerror
555 #  define strerror rpl_strerror
556 extern char *strerror (int);
557 # endif
558 #elif defined GNULIB_POSIXCHECK
559 # undef strerror
560 # define strerror(e) \
561     (GL_LINK_WARNING ("strerror is unportable - " \
562                       "use gnulib module strerror to guarantee non-NULL result"), \
563      strerror (e))
564 #endif
565
566 #if @GNULIB_STRSIGNAL@
567 # if @REPLACE_STRSIGNAL@
568 #  define strsignal rpl_strsignal
569 # endif
570 # if ! @HAVE_DECL_STRSIGNAL@ || @REPLACE_STRSIGNAL@
571 extern char *strsignal (int __sig);
572 # endif
573 #elif defined GNULIB_POSIXCHECK
574 # undef strsignal
575 # define strsignal(a) \
576     (GL_LINK_WARNING ("strsignal is unportable - " \
577                       "use gnulib module strsignal for portability"), \
578      strsignal (a))
579 #endif
580
581 #if @GNULIB_STRVERSCMP@
582 # if !@HAVE_STRVERSCMP@
583 extern int strverscmp (const char *, const char *);
584 # endif
585 #elif defined GNULIB_POSIXCHECK
586 # undef strverscmp
587 # define strverscmp(a, b) \
588     (GL_LINK_WARNING ("strverscmp is unportable - " \
589                       "use gnulib module strverscmp for portability"), \
590      strverscmp (a, b))
591 #endif
592
593
594 #ifdef __cplusplus
595 }
596 #endif
597
598 #endif /* _GL_STRING_H */
599 #endif /* _GL_STRING_H */