1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2013-09-28 04:06+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
20 #: build/C/man3/bcmp.3:31
26 #: build/C/man3/bcmp.3:31 build/C/man3/bzero.3:31
32 #: build/C/man3/bcmp.3:31 build/C/man3/bcopy.3:33 build/C/man3/bzero.3:31
38 #: build/C/man3/bcmp.3:31 build/C/man3/bcopy.3:33 build/C/man3/bstring.3:32 build/C/man3/bzero.3:31 build/C/man3/ffs.3:33 build/C/man3/index.3:31 build/C/man3/memccpy.3:30 build/C/man3/memchr.3:32 build/C/man3/memcmp.3:30 build/C/man3/memcpy.3:30 build/C/man3/memfrob.3:30 build/C/man3/memmem.3:30 build/C/man3/memmove.3:30 build/C/man3/mempcpy.3:10 build/C/man3/memset.3:30 build/C/man3/stpcpy.3:25 build/C/man3/stpncpy.3:14 build/C/man3/strcasecmp.3:30 build/C/man3/strcat.3:32 build/C/man3/strchr.3:33 build/C/man3/strcmp.3:32 build/C/man3/strcoll.3:30 build/C/man3/strcpy.3:35 build/C/man3/strdup.3:31 build/C/man3/strerror.3:39 build/C/man3/strfry.3:30 build/C/man3/string.3:30 build/C/man3/strlen.3:30 build/C/man3/strnlen.3:13 build/C/man3/strpbrk.3:30 build/C/man3/strsep.3:33 build/C/man3/strsignal.3:30 build/C/man3/strspn.3:30 build/C/man3/strstr.3:33 build/C/man3/strtok.3:32 build/C/man3/strverscmp.3:25 build/C/man3/strxfrm.3:30
40 msgid "Linux Programmer's Manual"
44 #: build/C/man3/bcmp.3:32 build/C/man3/bcopy.3:34 build/C/man3/bstring.3:33 build/C/man3/bzero.3:32 build/C/man3/ffs.3:34 build/C/man3/index.3:32 build/C/man3/memccpy.3:31 build/C/man3/memchr.3:33 build/C/man3/memcmp.3:31 build/C/man3/memcpy.3:31 build/C/man3/memfrob.3:31 build/C/man3/memmem.3:31 build/C/man3/memmove.3:31 build/C/man3/mempcpy.3:11 build/C/man3/memset.3:31 build/C/man3/stpcpy.3:26 build/C/man3/stpncpy.3:15 build/C/man3/strcasecmp.3:31 build/C/man3/strcat.3:33 build/C/man3/strchr.3:34 build/C/man3/strcmp.3:33 build/C/man3/strcoll.3:31 build/C/man3/strcpy.3:36 build/C/man3/strdup.3:32 build/C/man3/strerror.3:40 build/C/man3/strfry.3:31 build/C/man3/string.3:31 build/C/man3/strlen.3:31 build/C/man3/strnlen.3:14 build/C/man3/strpbrk.3:31 build/C/man3/strsep.3:34 build/C/man3/strsignal.3:31 build/C/man3/strspn.3:31 build/C/man3/strstr.3:34 build/C/man3/strtok.3:33 build/C/man3/strverscmp.3:26 build/C/man3/strxfrm.3:31
50 #: build/C/man3/bcmp.3:34
51 msgid "bcmp - compare byte sequences"
55 #: build/C/man3/bcmp.3:34 build/C/man3/bcopy.3:36 build/C/man3/bstring.3:36 build/C/man3/bzero.3:34 build/C/man3/ffs.3:36 build/C/man3/index.3:34 build/C/man3/memccpy.3:33 build/C/man3/memchr.3:35 build/C/man3/memcmp.3:33 build/C/man3/memcpy.3:33 build/C/man3/memfrob.3:33 build/C/man3/memmem.3:33 build/C/man3/memmove.3:33 build/C/man3/mempcpy.3:13 build/C/man3/memset.3:33 build/C/man3/stpcpy.3:28 build/C/man3/stpncpy.3:17 build/C/man3/strcasecmp.3:33 build/C/man3/strcat.3:35 build/C/man3/strchr.3:36 build/C/man3/strcmp.3:35 build/C/man3/strcoll.3:33 build/C/man3/strcpy.3:38 build/C/man3/strdup.3:34 build/C/man3/strerror.3:42 build/C/man3/strfry.3:33 build/C/man3/string.3:36 build/C/man3/strlen.3:33 build/C/man3/strnlen.3:16 build/C/man3/strpbrk.3:33 build/C/man3/strsep.3:36 build/C/man3/strsignal.3:33 build/C/man3/strspn.3:33 build/C/man3/strstr.3:36 build/C/man3/strtok.3:35 build/C/man3/strverscmp.3:28 build/C/man3/strxfrm.3:33
61 #: build/C/man3/bcmp.3:37 build/C/man3/bcopy.3:39 build/C/man3/bzero.3:37 build/C/man3/ffs.3:39 build/C/man3/index.3:37 build/C/man3/strcasecmp.3:36 build/C/man3/string.3:39
63 msgid "B<#include E<lt>strings.hE<gt>>\n"
67 #: build/C/man3/bcmp.3:39
69 msgid "B<int bcmp(const void *>I<s1>B<, const void *>I<s2>B<, size_t >I<n>B<);>\n"
73 #: build/C/man3/bcmp.3:40 build/C/man3/bcopy.3:42 build/C/man3/bstring.3:63 build/C/man3/bzero.3:40 build/C/man3/ffs.3:74 build/C/man3/index.3:42 build/C/man3/memccpy.3:39 build/C/man3/memchr.3:54 build/C/man3/memcmp.3:39 build/C/man3/memcpy.3:39 build/C/man3/memfrob.3:40 build/C/man3/memmem.3:41 build/C/man3/memmove.3:39 build/C/man3/mempcpy.3:27 build/C/man3/memset.3:39 build/C/man3/stpcpy.3:53 build/C/man3/stpncpy.3:42 build/C/man3/strcasecmp.3:41 build/C/man3/strcat.3:43 build/C/man3/strchr.3:49 build/C/man3/strcmp.3:43 build/C/man3/strcoll.3:39 build/C/man3/strcpy.3:46 build/C/man3/strdup.3:77 build/C/man3/strerror.3:67 build/C/man3/strfry.3:41 build/C/man3/string.3:90 build/C/man3/strlen.3:39 build/C/man3/strnlen.3:41 build/C/man3/strpbrk.3:39 build/C/man3/strsep.3:50 build/C/man3/strsignal.3:60 build/C/man3/strspn.3:41 build/C/man3/strstr.3:48 build/C/man3/strtok.3:54 build/C/man3/strverscmp.3:36 build/C/man3/strxfrm.3:39
79 #: build/C/man3/bcmp.3:56
81 "The B<bcmp>() function compares the two byte sequences I<s1> and I<s2> of "
82 "length I<n> each. If they are equal, and in particular if I<n> is zero, "
83 "B<bcmp>() returns 0. Otherwise it returns a nonzero result."
87 #: build/C/man3/bcmp.3:56 build/C/man3/bcopy.3:52 build/C/man3/bzero.3:48 build/C/man3/ffs.3:87 build/C/man3/index.3:55 build/C/man3/memccpy.3:55 build/C/man3/memchr.3:105 build/C/man3/memcmp.3:45 build/C/man3/memcpy.3:48 build/C/man3/memfrob.3:53 build/C/man3/memmem.3:54 build/C/man3/memmove.3:57 build/C/man3/mempcpy.3:53 build/C/man3/memset.3:49 build/C/man3/stpcpy.3:63 build/C/man3/stpncpy.3:82 build/C/man3/strcasecmp.3:63 build/C/man3/strcat.3:123 build/C/man3/strchr.3:81 build/C/man3/strcmp.3:66 build/C/man3/strcoll.3:58 build/C/man3/strcpy.3:108 build/C/man3/strdup.3:111 build/C/man3/strerror.3:136 build/C/man3/strfry.3:52 build/C/man3/strlen.3:45 build/C/man3/strnlen.3:58 build/C/man3/strpbrk.3:47 build/C/man3/strsep.3:74 build/C/man3/strsignal.3:77 build/C/man3/strspn.3:57 build/C/man3/strstr.3:62 build/C/man3/strtok.3:162 build/C/man3/strverscmp.3:81 build/C/man3/strxfrm.3:62
93 #: build/C/man3/bcmp.3:61
95 "The B<bcmp>() function returns 0 if the byte sequences are equal, otherwise "
96 "a nonzero result is returned."
100 #: build/C/man3/bcmp.3:61 build/C/man3/bcopy.3:54 build/C/man3/bzero.3:50 build/C/man3/ffs.3:91 build/C/man3/index.3:62 build/C/man3/memccpy.3:70 build/C/man3/memchr.3:124 build/C/man3/memcmp.3:60 build/C/man3/memcpy.3:52 build/C/man3/memfrob.3:58 build/C/man3/memmem.3:59 build/C/man3/memmove.3:62 build/C/man3/mempcpy.3:60 build/C/man3/memset.3:54 build/C/man3/stpcpy.3:71 build/C/man3/stpncpy.3:91 build/C/man3/strcasecmp.3:76 build/C/man3/strcat.3:130 build/C/man3/strchr.3:107 build/C/man3/strcmp.3:79 build/C/man3/strcoll.3:69 build/C/man3/strcpy.3:116 build/C/man3/strdup.3:123 build/C/man3/strerror.3:184 build/C/man3/strfry.3:57 build/C/man3/strlen.3:50 build/C/man3/strnlen.3:71 build/C/man3/strpbrk.3:56 build/C/man3/strsep.3:80 build/C/man3/strsignal.3:84 build/C/man3/strspn.3:74 build/C/man3/strstr.3:65 build/C/man3/strtok.3:178 build/C/man3/strverscmp.3:90 build/C/man3/strxfrm.3:76
102 msgid "CONFORMING TO"
106 #: build/C/man3/bcmp.3:68
108 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
109 "B<memcmp>(3) in new programs. POSIX.1-2008 removes the specification of "
114 #: build/C/man3/bcmp.3:68 build/C/man3/bcopy.3:68 build/C/man3/bstring.3:82 build/C/man3/bzero.3:57 build/C/man3/ffs.3:103 build/C/man3/index.3:73 build/C/man3/memccpy.3:72 build/C/man3/memchr.3:136 build/C/man3/memcmp.3:62 build/C/man3/memcpy.3:54 build/C/man3/memfrob.3:63 build/C/man3/memmem.3:83 build/C/man3/memmove.3:64 build/C/man3/mempcpy.3:73 build/C/man3/memset.3:56 build/C/man3/stpcpy.3:110 build/C/man3/stpncpy.3:94 build/C/man3/strcasecmp.3:78 build/C/man3/strcat.3:169 build/C/man3/strchr.3:114 build/C/man3/strcmp.3:81 build/C/man3/strcoll.3:80 build/C/man3/strcpy.3:213 build/C/man3/strdup.3:133 build/C/man3/strerror.3:213 build/C/man3/strfry.3:62 build/C/man3/string.3:94 build/C/man3/strlen.3:52 build/C/man3/strnlen.3:73 build/C/man3/strpbrk.3:58 build/C/man3/strsep.3:100 build/C/man3/strsignal.3:87 build/C/man3/strspn.3:76 build/C/man3/strstr.3:84 build/C/man3/strtok.3:268 build/C/man3/strverscmp.3:92 build/C/man3/strxfrm.3:88
120 #: build/C/man3/bcmp.3:75
122 "B<memcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), "
123 "B<strncasecmp>(3), B<strncmp>(3)"
127 #: build/C/man3/bcmp.3:75 build/C/man3/bcopy.3:74 build/C/man3/bstring.3:94 build/C/man3/bzero.3:60 build/C/man3/ffs.3:105 build/C/man3/index.3:83 build/C/man3/memccpy.3:78 build/C/man3/memchr.3:147 build/C/man3/memcmp.3:70 build/C/man3/memcpy.3:62 build/C/man3/memfrob.3:65 build/C/man3/memmem.3:85 build/C/man3/memmove.3:71 build/C/man3/mempcpy.3:78 build/C/man3/memset.3:60 build/C/man3/stpcpy.3:119 build/C/man3/stpncpy.3:97 build/C/man3/strcasecmp.3:87 build/C/man3/strcat.3:178 build/C/man3/strchr.3:127 build/C/man3/strcmp.3:91 build/C/man3/strcoll.3:88 build/C/man3/strcpy.3:224 build/C/man3/strdup.3:141 build/C/man3/strerror.3:219 build/C/man3/strfry.3:65 build/C/man3/string.3:119 build/C/man3/strlen.3:57 build/C/man3/strnlen.3:75 build/C/man3/strpbrk.3:69 build/C/man3/strsep.3:110 build/C/man3/strsignal.3:90 build/C/man3/strspn.3:88 build/C/man3/strstr.3:96 build/C/man3/strtok.3:279 build/C/man3/strverscmp.3:97 build/C/man3/strxfrm.3:96
133 #: build/C/man3/bcmp.3:82 build/C/man3/bcopy.3:81 build/C/man3/bstring.3:101 build/C/man3/bzero.3:67 build/C/man3/ffs.3:112 build/C/man3/index.3:90 build/C/man3/memccpy.3:85 build/C/man3/memchr.3:154 build/C/man3/memcmp.3:77 build/C/man3/memcpy.3:69 build/C/man3/memfrob.3:72 build/C/man3/memmem.3:92 build/C/man3/memmove.3:78 build/C/man3/mempcpy.3:85 build/C/man3/memset.3:67 build/C/man3/stpcpy.3:126 build/C/man3/stpncpy.3:104 build/C/man3/strcasecmp.3:94 build/C/man3/strcat.3:185 build/C/man3/strchr.3:134 build/C/man3/strcmp.3:98 build/C/man3/strcoll.3:95 build/C/man3/strcpy.3:231 build/C/man3/strdup.3:148 build/C/man3/strerror.3:226 build/C/man3/strfry.3:72 build/C/man3/string.3:126 build/C/man3/strlen.3:64 build/C/man3/strnlen.3:82 build/C/man3/strpbrk.3:76 build/C/man3/strsep.3:117 build/C/man3/strsignal.3:97 build/C/man3/strspn.3:95 build/C/man3/strstr.3:103 build/C/man3/strtok.3:286 build/C/man3/strverscmp.3:104 build/C/man3/strxfrm.3:103
135 "This page is part of release 3.54 of the Linux I<man-pages> project. A "
136 "description of the project, and information about reporting bugs, can be "
137 "found at \\%http://www.kernel.org/doc/man-pages/."
141 #: build/C/man3/bcopy.3:33
147 #: build/C/man3/bcopy.3:33
153 #: build/C/man3/bcopy.3:36
154 msgid "bcopy - copy byte sequence"
158 #: build/C/man3/bcopy.3:41
160 msgid "B<void bcopy(const void *>I<src>B<, void *>I<dest>B<, size_t >I<n>B<);>\n"
164 #: build/C/man3/bcopy.3:52
166 "The B<bcopy>() function copies I<n> bytes from I<src> to I<dest>. The "
167 "result is correct, even when both areas overlap."
171 #: build/C/man3/bcopy.3:54 build/C/man3/bzero.3:50
176 #: build/C/man3/bcopy.3:68
178 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
179 "B<memcpy>(3) or B<memmove>(3) in new programs. Note that the first two "
180 "arguments are interchanged for B<memcpy>(3) and B<memmove>(3). "
181 "POSIX.1-2008 removes the specification of B<bcopy>()."
185 #: build/C/man3/bcopy.3:74
186 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
190 #: build/C/man3/bstring.3:32
196 #: build/C/man3/bstring.3:32
202 #: build/C/man3/bstring.3:36
204 "bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem, "
205 "memmove, memset - byte string operations"
209 #: build/C/man3/bstring.3:39 build/C/man3/ffs.3:43 build/C/man3/memccpy.3:36 build/C/man3/memchr.3:38 build/C/man3/memcmp.3:36 build/C/man3/memcpy.3:36 build/C/man3/memmove.3:36 build/C/man3/mempcpy.3:18 build/C/man3/memset.3:36 build/C/man3/stpcpy.3:31 build/C/man3/stpncpy.3:20 build/C/man3/strcat.3:38 build/C/man3/strchr.3:39 build/C/man3/strcmp.3:38 build/C/man3/strcoll.3:36 build/C/man3/strcpy.3:41 build/C/man3/strdup.3:37 build/C/man3/strerror.3:45 build/C/man3/strfry.3:38 build/C/man3/string.3:49 build/C/man3/strlen.3:36 build/C/man3/strnlen.3:19 build/C/man3/strpbrk.3:36 build/C/man3/strsep.3:39 build/C/man3/strsignal.3:36 build/C/man3/strspn.3:36 build/C/man3/strstr.3:39 build/C/man3/strstr.3:45 build/C/man3/strtok.3:38 build/C/man3/strverscmp.3:33 build/C/man3/strxfrm.3:36
211 msgid "B<#include E<lt>string.hE<gt>>\n"
215 #: build/C/man3/bstring.3:41
217 msgid "B<int bcmp(const void *>I<s1>B<, const void *>I<s2>B<, int >I<n>B<);>\n"
221 #: build/C/man3/bstring.3:43
223 msgid "B<void bcopy(const void *>I<src>B<, void *>I<dest>B<, int >I<n>B<);>\n"
227 #: build/C/man3/bstring.3:45
229 msgid "B<void bzero(void *>I<s>B<, int >I<n>B<);>\n"
233 #: build/C/man3/bstring.3:47 build/C/man3/memccpy.3:38
236 "B<void *memccpy(void *>I<dest>B<, const void *>I<src>B<, int >I<c>B<, size_t "
241 #: build/C/man3/bstring.3:49 build/C/man3/memchr.3:40
243 msgid "B<void *memchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
247 #: build/C/man3/bstring.3:51 build/C/man3/memcmp.3:38
249 msgid "B<int memcmp(const void *>I<s1>B<, const void *>I<s2>B<, size_t >I<n>B<);>\n"
253 #: build/C/man3/bstring.3:53 build/C/man3/memcpy.3:38
255 msgid "B<void *memcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
259 #: build/C/man3/bstring.3:55 build/C/man3/memfrob.3:39
261 msgid "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n"
265 #: build/C/man3/bstring.3:58
268 "B<void *memmem(const void *>I<needle>B<, size_t >I<needlelen>B<,>\n"
269 "B< const void *>I<haystack>B<, size_t >I<haystacklen>B<);>\n"
273 #: build/C/man3/bstring.3:60 build/C/man3/memmove.3:38
275 msgid "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
279 #: build/C/man3/bstring.3:62 build/C/man3/memset.3:38
281 msgid "B<void *memset(void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
285 #: build/C/man3/bstring.3:68
287 "The byte string functions perform operations on strings (byte arrays) that "
288 "are not necessarily null-terminated. See the individual man pages for "
289 "descriptions of each function."
293 #: build/C/man3/bstring.3:68 build/C/man3/ffs.3:100 build/C/man3/strcat.3:132 build/C/man3/strcoll.3:71 build/C/man3/strcpy.3:118 build/C/man3/strsep.3:82 build/C/man3/strxfrm.3:78
298 #. The old functions are not even available on some non-GNU/Linux systems.
300 #: build/C/man3/bstring.3:82
302 "The functions B<bcmp>(), B<bcopy>() and B<bzero>() are obsolete. Use "
303 "B<memcmp>(), B<memcpy>() and B<memset>() instead."
307 #: build/C/man3/bstring.3:94
309 "B<bcmp>(3), B<bcopy>(3), B<bzero>(3), B<memccpy>(3), B<memchr>(3), "
310 "B<memcmp>(3), B<memcpy>(3), B<memfrob>(3), B<memmem>(3), B<memmove>(3), "
315 #: build/C/man3/bzero.3:31
321 #: build/C/man3/bzero.3:34
322 msgid "bzero - write zero-valued bytes"
326 #: build/C/man3/bzero.3:39
328 msgid "B<void bzero(void *>I<s>B<, size_t >I<n>B<);>\n"
332 #: build/C/man3/bzero.3:48
334 "The B<bzero>() function sets the first I<n> bytes of the area starting at "
335 "I<s> to zero (bytes containing \\(aq\\e0\\(aq)."
339 #: build/C/man3/bzero.3:57
341 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
342 "B<memset>(3) in new programs. POSIX.1-2008 removes the specification of "
347 #: build/C/man3/bzero.3:60
348 msgid "B<memset>(3), B<swab>(3)"
352 #: build/C/man3/ffs.3:33
358 #: build/C/man3/ffs.3:33 build/C/man3/strcoll.3:30 build/C/man3/strfry.3:30
364 #: build/C/man3/ffs.3:33 build/C/man3/index.3:31 build/C/man3/memccpy.3:30 build/C/man3/memfrob.3:30 build/C/man3/memmem.3:30 build/C/man3/memmove.3:30 build/C/man3/mempcpy.3:10 build/C/man3/memset.3:30 build/C/man3/stpcpy.3:25 build/C/man3/stpncpy.3:14 build/C/man3/strcat.3:32 build/C/man3/strchr.3:33 build/C/man3/strcoll.3:30 build/C/man3/strcpy.3:35 build/C/man3/strdup.3:31 build/C/man3/strfry.3:30 build/C/man3/strlen.3:30 build/C/man3/strnlen.3:13 build/C/man3/strsep.3:33 build/C/man3/strsignal.3:30 build/C/man3/strstr.3:33 build/C/man3/strtok.3:32 build/C/man3/strverscmp.3:25 build/C/man3/strxfrm.3:30
370 #: build/C/man3/ffs.3:36
371 msgid "ffs, ffsl, ffsll - find first bit set in a word"
375 #: build/C/man3/ffs.3:41
377 msgid "B<int ffs(int >I<i>B<);>\n"
381 #: build/C/man3/ffs.3:45
383 msgid "B<int ffsl(long int >I<i>B<);>\n"
387 #: build/C/man3/ffs.3:47
389 msgid "B<int ffsll(long long int >I<i>B<);>\n"
393 #: build/C/man3/ffs.3:52 build/C/man3/memchr.3:49 build/C/man3/stpcpy.3:38 build/C/man3/stpncpy.3:27 build/C/man3/strdup.3:50 build/C/man3/strerror.3:58 build/C/man3/strnlen.3:26 build/C/man3/strsep.3:46 build/C/man3/strsignal.3:45 build/C/man3/strtok.3:47
394 msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
398 #: build/C/man3/ffs.3:57
403 #: build/C/man3/ffs.3:58
405 msgid "Since glibc 2.12:"
409 #: build/C/man3/ffs.3:62
411 "_SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L || "
412 "_XOPEN_SOURCE\\ E<gt>=\\ 700 ||"
416 #: build/C/man3/ffs.3:62
418 msgid "Before glibc 2.12:"
422 #: build/C/man3/ffs.3:65
427 #: build/C/man3/ffs.3:69
428 msgid "B<ffsl>(), B<ffsll>():"
432 #: build/C/man3/ffs.3:71 build/C/man3/stpcpy.3:50 build/C/man3/stpncpy.3:39 build/C/man3/strdup.3:70 build/C/man3/strnlen.3:38 build/C/man3/strsignal.3:57
437 #: build/C/man3/ffs.3:87
439 "The B<ffs>() function returns the position of the first (least significant) "
440 "bit set in the word I<i>. The least significant bit is position 1 and the "
441 "most significant position is, for example, 32 or 64. The functions "
442 "B<ffsll>() and B<ffsl>() do the same but take arguments of possibly "
447 #: build/C/man3/ffs.3:91
449 "These functions return the position of the first bit set, or 0 if no bits "
454 #: build/C/man3/ffs.3:94
455 msgid "B<ffs>(): 4.3BSD, POSIX.1-2001."
459 #: build/C/man3/ffs.3:100
460 msgid "The B<ffsl>() and B<ffsll>() functions are glibc extensions."
464 #: build/C/man3/ffs.3:103
465 msgid "BSD systems have a prototype in I<E<lt>string.hE<gt>>."
469 #: build/C/man3/ffs.3:105
474 #: build/C/man3/index.3:31
480 #: build/C/man3/index.3:31
486 #: build/C/man3/index.3:34
487 msgid "index, rindex - locate character in string"
491 #: build/C/man3/index.3:39 build/C/man3/string.3:45
493 msgid "B<char *index(const char *>I<s>B<, int >I<c>B<);>\n"
497 #: build/C/man3/index.3:41 build/C/man3/string.3:47
499 msgid "B<char *rindex(const char *>I<s>B<, int >I<c>B<);>\n"
503 #: build/C/man3/index.3:47
505 "The B<index>() function returns a pointer to the first occurrence of the "
506 "character I<c> in the string I<s>."
510 #: build/C/man3/index.3:52
512 "The B<rindex>() function returns a pointer to the last occurrence of the "
513 "character I<c> in the string I<s>."
517 #: build/C/man3/index.3:55
519 "The terminating null byte (\\(aq\\e0\\(aq) is considered to be a part of the "
524 #: build/C/man3/index.3:62
526 "The B<index>() and B<rindex>() functions return a pointer to the matched "
527 "character or NULL if the character is not found."
531 #: build/C/man3/index.3:73
533 "4.3BSD; marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removes the "
534 "specifications of B<index>() and B<rindex>(), recommending B<strchr>(3) "
535 "and B<strrchr>(3) instead."
539 #: build/C/man3/index.3:83
541 "B<memchr>(3), B<strchr>(3), B<string>(3), B<strpbrk>(3), B<strrchr>(3), "
542 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
546 #: build/C/man3/memccpy.3:30
552 #: build/C/man3/memccpy.3:30
558 #: build/C/man3/memccpy.3:33
559 msgid "memccpy - copy memory area"
563 #: build/C/man3/memccpy.3:53
565 "The B<memccpy>() function copies no more than I<n> bytes from memory area "
566 "I<src> to memory area I<dest>, stopping when the character I<c> is found."
570 #: build/C/man3/memccpy.3:55
571 msgid "If the memory areas overlap, the results are undefined."
575 #: build/C/man3/memccpy.3:70
577 "The B<memccpy>() function returns a pointer to the next character in "
578 "I<dest> after I<c>, or NULL if I<c> was not found in the first I<n> "
579 "characters of I<src>."
583 #: build/C/man3/memccpy.3:72
584 msgid "SVr4, 4.3BSD, POSIX.1-2001."
588 #: build/C/man3/memccpy.3:78
589 msgid "B<bcopy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
593 #: build/C/man3/memchr.3:32
599 #: build/C/man3/memchr.3:32
605 #: build/C/man3/memchr.3:35
606 msgid "memchr, memrchr, rawmemchr - scan memory for a character"
610 #: build/C/man3/memchr.3:42
612 msgid "B<void *memrchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
616 #: build/C/man3/memchr.3:44
618 msgid "B<void *rawmemchr(const void *>I<s>B<, int >I<c>B<);>\n"
622 #: build/C/man3/memchr.3:54
623 msgid "B<memrchr>(), B<rawmemchr>(): _GNU_SOURCE"
627 #: build/C/man3/memchr.3:70
629 "The B<memchr>() function scans the initial I<n> bytes of the memory area "
630 "pointed to by I<s> for the first instance of I<c>. Both I<c> and the bytes "
631 "of the memory area pointed to by I<s> are interpreted as I<unsigned char>."
635 #: build/C/man3/memchr.3:81
637 "The B<memrchr>() function is like the B<memchr>() function, except that it "
638 "searches backward from the end of the I<n> bytes pointed to by I<s> instead "
639 "of forward from the beginning."
643 #: build/C/man3/memchr.3:99
645 "The B<rawmemchr>() function is similar to B<memchr>(): it assumes (i.e., "
646 "the programmer knows for certain) that an instance of I<c> lies somewhere "
647 "in the memory area starting at the location pointed to by I<s>, and so "
648 "performs an optimized search for I<c> (i.e., no use of a count argument to "
649 "limit the range of the search). If an instance of I<c> is not found, the "
650 "results are unpredictable. The following call is a fast means of locating a "
651 "string's terminating null byte:"
655 #: build/C/man3/memchr.3:103
657 msgid "char *p = rawmemchr(s,\\ \\(aq\\e0\\(aq);\n"
661 #: build/C/man3/memchr.3:113
663 "The B<memchr>() and B<memrchr>() functions return a pointer to the "
664 "matching byte or NULL if the character does not occur in the given memory "
669 #: build/C/man3/memchr.3:118
671 "The B<rawmemchr>() function returns a pointer to the matching byte, if one "
672 "is found. If no matching byte is found, the result is unspecified."
676 #: build/C/man3/memchr.3:118 build/C/man3/mempcpy.3:57 build/C/man3/strchr.3:104
682 #: build/C/man3/memchr.3:121
683 msgid "B<rawmemchr>() first appeared in glibc in version 2.1."
687 #: build/C/man3/memchr.3:124
688 msgid "B<memrchr>() first appeared in glibc in version 2.2."
692 #: build/C/man3/memchr.3:128
693 msgid "The B<memchr>() function conforms to SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
697 #: build/C/man3/memchr.3:132
698 msgid "The B<memrchr>() function is a GNU extension, available since glibc 2.1.91."
702 #: build/C/man3/memchr.3:136
703 msgid "The B<rawmemchr>() function is a GNU extension, available since glibc 2.1."
707 #: build/C/man3/memchr.3:147
709 "B<ffs>(3), B<index>(3), B<rindex>(3), B<strchr>(3), B<strpbrk>(3), "
710 "B<strrchr>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wmemchr>(3)"
714 #: build/C/man3/memcmp.3:30
720 #: build/C/man3/memcmp.3:30 build/C/man3/strcmp.3:32
726 #: build/C/man3/memcmp.3:33
727 msgid "memcmp - compare memory areas"
731 #: build/C/man3/memcmp.3:45
733 "The B<memcmp>() function compares the first I<n> bytes (each interpreted as "
734 "I<unsigned char>) of the memory areas I<s1> and I<s2>."
738 #: build/C/man3/memcmp.3:52
740 "The B<memcmp>() function returns an integer less than, equal to, or greater "
741 "than zero if the first I<n> bytes of I<s1> is found, respectively, to be "
742 "less than, to match, or be greater than the first I<n> bytes of I<s2>."
746 #: build/C/man3/memcmp.3:60
748 "For a nonzero return value, the sign is determined by the sign of the "
749 "difference between the first pair of bytes (interpreted as I<unsigned char>) "
750 "that differ in I<s1> and I<s2>."
754 #: build/C/man3/memcmp.3:62 build/C/man3/memcpy.3:54 build/C/man3/memmove.3:64 build/C/man3/memset.3:56
755 msgid "SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
759 #: build/C/man3/memcmp.3:70
761 "B<bcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), "
762 "B<strncasecmp>(3), B<strncmp>(3), B<wmemcmp>(3)"
766 #: build/C/man3/memcpy.3:30
772 #: build/C/man3/memcpy.3:30
778 #: build/C/man3/memcpy.3:33
779 msgid "memcpy - copy memory area"
783 #: build/C/man3/memcpy.3:48
785 "The B<memcpy>() function copies I<n> bytes from memory area I<src> to "
786 "memory area I<dest>. The memory areas must not overlap. Use B<memmove>(3) "
787 "if the memory areas do overlap."
791 #: build/C/man3/memcpy.3:52
792 msgid "The B<memcpy>() function returns a pointer to I<dest>."
796 #: build/C/man3/memcpy.3:62
798 "B<bcopy>(3), B<memccpy>(3), B<memmove>(3), B<mempcpy>(3), B<strcpy>(3), "
799 "B<strncpy>(3), B<wmemcpy>(3)"
803 #: build/C/man3/memfrob.3:30
809 #: build/C/man3/memfrob.3:30
815 #: build/C/man3/memfrob.3:33
816 msgid "memfrob - frobnicate (encrypt) a memory area"
820 #: build/C/man3/memfrob.3:37
823 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
824 "B<#include E<lt>string.hE<gt>>\n"
828 #: build/C/man3/memfrob.3:50
830 "The B<memfrob>() function encrypts the first I<n> bytes of the memory area "
831 "I<s> by exclusive-ORing each character with the number 42. The effect can "
832 "be reversed by using B<memfrob>() on the encrypted memory area."
836 #: build/C/man3/memfrob.3:53
838 "Note that this function is not a proper encryption routine as the XOR "
839 "constant is fixed, and is suitable only for hiding strings."
843 #: build/C/man3/memfrob.3:58
844 msgid "The B<memfrob>() function returns a pointer to the encrypted memory area."
848 #: build/C/man3/memfrob.3:63
849 msgid "The B<memfrob>() function is unique to the GNU C Library."
853 #: build/C/man3/memfrob.3:65
858 #: build/C/man3/memmem.3:30
864 #: build/C/man3/memmem.3:30
870 #: build/C/man3/memmem.3:33
871 msgid "memmem - locate a substring"
875 #: build/C/man3/memmem.3:37 build/C/man3/strchr.3:46
878 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
879 "B<#include E<lt>string.hE<gt>>\n"
883 #: build/C/man3/memmem.3:40
886 "B<void *memmem(const void *>I<haystack>B<, size_t >I<haystacklen>B<,>\n"
887 "B< const void *>I<needle>B<, size_t >I<needlelen>B<);>\n"
891 #: build/C/man3/memmem.3:54
893 "The B<memmem>() function finds the start of the first occurrence of the "
894 "substring I<needle> of length I<needlelen> in the memory area I<haystack> of "
895 "length I<haystacklen>."
899 #: build/C/man3/memmem.3:59
901 "The B<memmem>() function returns a pointer to the beginning of the "
902 "substring, or NULL if the substring is not found."
906 #: build/C/man3/memmem.3:61 build/C/man3/mempcpy.3:62 build/C/man3/strverscmp.3:92
907 msgid "This function is a GNU extension."
911 #: build/C/man3/memmem.3:61 build/C/man3/stpcpy.3:78 build/C/man3/strcpy.3:202 build/C/man3/strsep.3:91 build/C/man3/strstr.3:72 build/C/man3/strtok.3:185
917 #: build/C/man3/memmem.3:71
919 "This function was broken in Linux libraries up to and including libc 5.0.9; "
920 "there the I<needle> and I<haystack> arguments were interchanged, and a "
921 "pointer to the end of the first occurrence of I<needle> was returned."
925 #: build/C/man3/memmem.3:83
927 "Both old and new libc's have the bug that if I<needle> is empty, "
928 "I<haystack-1> (instead of I<haystack>) is returned. And glibc 2.0 makes it "
929 "worse, returning a pointer to the last byte of I<haystack>. This is fixed "
934 #: build/C/man3/memmem.3:85
939 #: build/C/man3/memmove.3:30
945 #: build/C/man3/memmove.3:30
951 #: build/C/man3/memmove.3:33
952 msgid "memmove - copy memory area"
956 #: build/C/man3/memmove.3:57
958 "The B<memmove>() function copies I<n> bytes from memory area I<src> to "
959 "memory area I<dest>. The memory areas may overlap: copying takes place as "
960 "though the bytes in I<src> are first copied into a temporary array that does "
961 "not overlap I<src> or I<dest>, and the bytes are then copied from the "
962 "temporary array to I<dest>."
966 #: build/C/man3/memmove.3:62
967 msgid "The B<memmove>() function returns a pointer to I<dest>."
971 #: build/C/man3/memmove.3:71
973 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<strncpy>(3), "
978 #: build/C/man3/mempcpy.3:10
984 #: build/C/man3/mempcpy.3:10
990 #: build/C/man3/mempcpy.3:13
991 msgid "mempcpy, wmempcpy - copy memory area"
995 #: build/C/man3/mempcpy.3:16 build/C/man3/mempcpy.3:22 build/C/man3/strfry.3:36 build/C/man3/strstr.3:43 build/C/man3/strverscmp.3:31
997 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1001 #: build/C/man3/mempcpy.3:20
1003 msgid "B<void *mempcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
1007 #: build/C/man3/mempcpy.3:24
1009 msgid "B<#include E<lt>wchar.hE<gt>>\n"
1013 #: build/C/man3/mempcpy.3:26
1016 "B<wchar_t *wmempcpy(wchar_t *>I<dest>B<, const wchar_t *>I<src>B<, size_t "
1021 #: build/C/man3/mempcpy.3:42
1023 "The B<mempcpy>() function is nearly identical to the B<memcpy>(3) "
1024 "function. It copies I<n> bytes from the object beginning at I<src> into the "
1025 "object pointed to by I<dest>. But instead of returning the value of I<dest> "
1026 "it returns a pointer to the byte following the last written byte."
1030 #: build/C/man3/mempcpy.3:45
1032 "This function is useful in situations where a number of objects shall be "
1033 "copied to consecutive memory positions."
1037 #: build/C/man3/mempcpy.3:53
1039 "The B<wmempcpy>() function is identical but takes I<wchar_t> type arguments "
1040 "and copies I<n> wide characters."
1044 #: build/C/man3/mempcpy.3:57
1045 msgid "I<dest> + I<n>."
1049 #: build/C/man3/mempcpy.3:60
1050 msgid "B<mempcpy>() first appeared in glibc in version 2.1."
1054 #: build/C/man3/mempcpy.3:62 build/C/man3/stpcpy.3:81 build/C/man3/strtok.3:201
1060 #: build/C/man3/mempcpy.3:72
1064 "combine(void *o1, size_t s1, void *o2, size_t s2)\n"
1066 " void *result = malloc(s1 + s2);\n"
1067 " if (result != NULL)\n"
1068 " mempcpy(mempcpy(result, o1, s1), o2, s2);\n"
1074 #: build/C/man3/mempcpy.3:78
1075 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<wmemcpy>(3)"
1079 #: build/C/man3/memset.3:30
1085 #: build/C/man3/memset.3:30
1091 #: build/C/man3/memset.3:33
1092 msgid "memset - fill memory with a constant byte"
1096 #: build/C/man3/memset.3:49
1098 "The B<memset>() function fills the first I<n> bytes of the memory area "
1099 "pointed to by I<s> with the constant byte I<c>."
1103 #: build/C/man3/memset.3:54
1104 msgid "The B<memset>() function returns a pointer to the memory area I<s>."
1108 #: build/C/man3/memset.3:60
1109 msgid "B<bzero>(3), B<swab>(3), B<wmemset>(3)"
1113 #: build/C/man3/stpcpy.3:25
1119 #: build/C/man3/stpcpy.3:25
1125 #: build/C/man3/stpcpy.3:28
1126 msgid "stpcpy - copy a string returning a pointer to its end"
1130 #: build/C/man3/stpcpy.3:33 build/C/man3/string.3:51
1132 msgid "B<char *stpcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1136 #: build/C/man3/stpcpy.3:41
1137 msgid "B<stpcpy>():"
1141 #: build/C/man3/stpcpy.3:44 build/C/man3/stpncpy.3:33 build/C/man3/strdup.3:64 build/C/man3/strnlen.3:32 build/C/man3/strsignal.3:51
1143 msgid "Since glibc 2.10:"
1147 #: build/C/man3/stpcpy.3:47 build/C/man3/stpncpy.3:36 build/C/man3/strnlen.3:35 build/C/man3/strsignal.3:54
1148 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
1152 #: build/C/man3/stpcpy.3:47 build/C/man3/stpncpy.3:36 build/C/man3/strdup.3:67 build/C/man3/strnlen.3:35 build/C/man3/strsignal.3:54
1154 msgid "Before glibc 2.10:"
1158 #: build/C/man3/stpcpy.3:63
1160 "The B<stpcpy>() function copies the string pointed to by I<src> (including "
1161 "the terminating null byte (\\(aq\\e0\\(aq)) to the array pointed to by "
1162 "I<dest>. The strings may not overlap, and the destination string I<dest> "
1163 "must be large enough to receive the copy."
1167 #: build/C/man3/stpcpy.3:71
1169 "B<stpcpy>() returns a pointer to the B<end> of the string I<dest> (that is, "
1170 "the address of the terminating null byte) rather than the beginning."
1174 #: build/C/man3/stpcpy.3:78
1176 "This function was added to POSIX.1-2008. Before that, it was not part of "
1177 "the C or POSIX.1 standards, nor customary on UNIX systems, but was not a GNU "
1178 "invention either. Perhaps it came from MS-DOS. It is also present on the "
1183 #: build/C/man3/stpcpy.3:81
1184 msgid "This function may overrun the buffer I<dest>."
1188 #: build/C/man3/stpcpy.3:91
1190 "For example, this program uses B<stpcpy>() to concatenate B<foo> and B<bar> "
1191 "to produce B<foobar>, which it then prints."
1195 #: build/C/man3/stpcpy.3:97
1198 "#define _GNU_SOURCE\n"
1199 "#include E<lt>string.hE<gt>\n"
1200 "#include E<lt>stdio.hE<gt>\n"
1204 #: build/C/man3/stpcpy.3:103
1210 " char buffer[20];\n"
1211 " char *to = buffer;\n"
1215 #: build/C/man3/stpcpy.3:108
1218 " to = stpcpy(to, \"foo\");\n"
1219 " to = stpcpy(to, \"bar\");\n"
1220 " printf(\"%s\\en\", buffer);\n"
1225 #: build/C/man3/stpcpy.3:119
1227 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpncpy>(3), "
1228 "B<strcpy>(3), B<string>(3), B<wcpcpy>(3)"
1232 #: build/C/man3/stpncpy.3:14
1238 #: build/C/man3/stpncpy.3:14 build/C/man3/strsep.3:33 build/C/man3/strstr.3:33
1244 #: build/C/man3/stpncpy.3:17
1245 msgid "stpncpy - copy a fixed-size string, returning a pointer to its end"
1249 #: build/C/man3/stpncpy.3:22
1251 msgid "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1255 #: build/C/man3/stpncpy.3:30
1256 msgid "B<stpncpy>():"
1260 #: build/C/man3/stpncpy.3:74
1262 "The B<stpncpy>() function copies at most I<n> characters from the string "
1263 "pointed to by I<src>, including the terminating null byte (\\(aq\\e0\\(aq), "
1264 "to the array pointed to by I<dest>. Exactly I<n> characters are written at "
1265 "I<dest>. If the length I<strlen(src)> is smaller than I<n>, the remaining "
1266 "characters in the array pointed to by I<dest> are filled with null bytes "
1267 "(\\(aq\\e0\\(aq), If the length I<strlen(src)> is greater or equal to I<n>, "
1268 "the string pointed to by I<dest> will not be null-terminated."
1272 #: build/C/man3/stpncpy.3:76
1273 msgid "The strings may not overlap."
1277 #: build/C/man3/stpncpy.3:82
1279 "The programmer must ensure that there is room for at least I<n> characters "
1284 #: build/C/man3/stpncpy.3:91
1286 "B<stpncpy>() returns a pointer to the terminating null byte in I<dest>, or, "
1287 "if I<dest> is not null-terminated, I<dest>+I<n>."
1291 #: build/C/man3/stpncpy.3:94
1293 "This function was added to POSIX.1-2008. Before that, it was a GNU "
1298 #: build/C/man3/stpncpy.3:97
1299 msgid "B<strncpy>(3), B<wcpncpy>(3)"
1303 #: build/C/man3/strcasecmp.3:30
1309 #: build/C/man3/strcasecmp.3:30 build/C/man3/strnlen.3:13 build/C/man3/strpbrk.3:30 build/C/man3/strspn.3:30 build/C/man3/strxfrm.3:30
1315 #: build/C/man3/strcasecmp.3:33
1316 msgid "strcasecmp, strncasecmp - compare two strings ignoring case"
1320 #: build/C/man3/strcasecmp.3:38 build/C/man3/string.3:41
1322 msgid "B<int strcasecmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1326 #: build/C/man3/strcasecmp.3:40 build/C/man3/string.3:43
1329 "B<int strncasecmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t "
1334 #: build/C/man3/strcasecmp.3:55
1336 "The B<strcasecmp>() function compares the two strings I<s1> and I<s2>, "
1337 "ignoring the case of the characters. It returns an integer less than, equal "
1338 "to, or greater than zero if I<s1> is found, respectively, to be less than, "
1339 "to match, or be greater than I<s2>."
1343 #: build/C/man3/strcasecmp.3:63
1345 "The B<strncasecmp>() function is similar, except it compares the only first "
1346 "I<n> bytes of I<s1>."
1350 #: build/C/man3/strcasecmp.3:76
1352 "The B<strcasecmp>() and B<strncasecmp>() functions return an integer less "
1353 "than, equal to, or greater than zero if I<s1> (or the first I<n> bytes "
1354 "thereof) is found, respectively, to be less than, to match, or be greater "
1359 #: build/C/man3/strcasecmp.3:78
1360 msgid "4.4BSD, POSIX.1-2001."
1364 #: build/C/man3/strcasecmp.3:87
1366 "B<bcmp>(3), B<memcmp>(3), B<strcmp>(3), B<strcoll>(3), B<string>(3), "
1367 "B<strncmp>(3), B<wcscasecmp>(3), B<wcsncasecmp>(3)"
1371 #: build/C/man3/strcat.3:32
1377 #: build/C/man3/strcat.3:32 build/C/man3/strcpy.3:35
1383 #: build/C/man3/strcat.3:35
1384 msgid "strcat, strncat - concatenate two strings"
1388 #: build/C/man3/strcat.3:40 build/C/man3/string.3:53
1390 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
1394 #: build/C/man3/strcat.3:42 build/C/man3/string.3:71
1396 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1400 #: build/C/man3/strcat.3:62
1402 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
1403 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
1404 "I<dest>, and then adds a terminating null byte. The strings may not "
1405 "overlap, and the I<dest> string must have enough space for the result. If "
1406 "I<dest> is not large enough, program behavior is unpredictable; I<buffer "
1407 "overruns are a favorite avenue for attacking secure programs>."
1411 #: build/C/man3/strcat.3:66
1412 msgid "The B<strncat>() function is similar, except that"
1416 #: build/C/man3/strcat.3:66 build/C/man3/strcat.3:72 build/C/man3/strsep.3:94 build/C/man3/strsep.3:96 build/C/man3/strsep.3:98 build/C/man3/strtok.3:188 build/C/man3/strtok.3:190 build/C/man3/strtok.3:192 build/C/man3/strtok.3:194
1422 #: build/C/man3/strcat.3:72
1423 msgid "it will use at most I<n> bytes from I<src>; and"
1427 #: build/C/man3/strcat.3:77
1429 "I<src> does not need to be null-terminated if it contains I<n> or more "
1434 #: build/C/man3/strcat.3:83
1436 "As with B<strcat>(), the resulting string in I<dest> is always "
1441 #: build/C/man3/strcat.3:102
1443 "If I<src> contains I<n> or more bytes, B<strncat>() writes I<n+1> bytes to "
1444 "I<dest> (I<n> from I<src> plus the terminating null byte). Therefore, the "
1445 "size of I<dest> must be at least I<strlen(dest)+n+1>."
1449 #: build/C/man3/strcat.3:106
1450 msgid "A simple implementation of B<strncat>() might be:"
1454 #: build/C/man3/strcat.3:114
1458 "strncat(char *dest, const char *src, size_t n)\n"
1460 " size_t dest_len = strlen(dest);\n"
1465 #: build/C/man3/strcat.3:118
1468 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
1469 " dest[dest_len + i] = src[i];\n"
1470 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
1474 #: build/C/man3/strcat.3:121 build/C/man3/strcpy.3:106
1482 #: build/C/man3/strcat.3:130
1484 "The B<strcat>() and B<strncat>() functions return a pointer to the "
1485 "resulting string I<dest>."
1489 #: build/C/man3/strcat.3:132 build/C/man3/strcmp.3:81 build/C/man3/strcoll.3:71 build/C/man3/strcpy.3:118 build/C/man3/strlen.3:52 build/C/man3/strpbrk.3:58 build/C/man3/strspn.3:76 build/C/man3/strxfrm.3:78
1490 msgid "SVr4, 4.3BSD, C89, C99."
1494 #: build/C/man3/strcat.3:134 build/C/man3/strcpy.3:165
1495 msgid "Some systems (the BSDs, Solaris, and others) provide the following function:"
1499 #: build/C/man3/strcat.3:136
1501 msgid " size_t strlcat(char *dest, const char *src, size_t size);\n"
1504 #. https://lwn.net/Articles/506530/
1506 #: build/C/man3/strcat.3:169
1508 "This function appends the null-terminated string I<src> to the string "
1509 "I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a null "
1510 "terminator to the result, I<unless> I<size> is less than I<strlen(dest)>. "
1511 "This function fixes the buffer overrun problem of B<strcat>(), but the "
1512 "caller must still handle the possibility of data loss if I<size> is too "
1513 "small. The function returns the length of the string B<strlcat>() tried to "
1514 "create; if the return value is greater than or equal to I<size>, data loss "
1515 "occurred. If data loss matters, the caller I<must> either check the "
1516 "arguments before the call, or test the function return value. B<strlcat>() "
1517 "is not present in glibc and is not standardized by POSIX, but is available "
1518 "on Linux via the I<libbsd> library."
1522 #: build/C/man3/strcat.3:178
1524 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
1525 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
1529 #: build/C/man3/strchr.3:33
1535 #: build/C/man3/strchr.3:33
1541 #: build/C/man3/strchr.3:36
1542 msgid "strchr, strrchr, strchrnul - locate character in string"
1546 #: build/C/man3/strchr.3:41 build/C/man3/string.3:55
1548 msgid "B<char *strchr(const char *>I<s>B<, int >I<c>B<);>\n"
1552 #: build/C/man3/strchr.3:43 build/C/man3/string.3:79
1554 msgid "B<char *strrchr(const char *>I<s>B<, int >I<c>B<);>\n"
1558 #: build/C/man3/strchr.3:48
1560 msgid "B<char *strchrnul(const char *>I<s>B<, int >I<c>B<);>\n"
1564 #: build/C/man3/strchr.3:57
1566 "The B<strchr>() function returns a pointer to the first occurrence of the "
1567 "character I<c> in the string I<s>."
1571 #: build/C/man3/strchr.3:65
1573 "The B<strrchr>() function returns a pointer to the last occurrence of the "
1574 "character I<c> in the string I<s>."
1578 #: build/C/man3/strchr.3:78
1580 "The B<strchrnul>() function is like B<strchr>() except that if I<c> is not "
1581 "found in I<s>, then it returns a pointer to the null byte at the end of "
1582 "I<s>, rather than NULL."
1586 #: build/C/man3/strchr.3:81
1588 "Here \"character\" means \"byte\"; these functions do not work with wide or "
1589 "multibyte characters."
1593 #: build/C/man3/strchr.3:93
1595 "The B<strchr>() and B<strrchr>() functions return a pointer to the matched "
1596 "character or NULL if the character is not found. The terminating null byte "
1597 "is considered part of the string, so that if I<c> is specified as "
1598 "\\(aq\\e0\\(aq, these functions return a pointer to the terminator."
1602 #: build/C/man3/strchr.3:104
1604 "The B<strchrnul>() function returns a pointer to the matched character, or "
1605 "a pointer to the null byte at the end of I<s> (i.e., I<s+strlen(s)>) if the "
1606 "character is not found."
1610 #: build/C/man3/strchr.3:107
1611 msgid "B<strchrnul>() first appeared in glibc in version 2.1.1."
1615 #: build/C/man3/strchr.3:114
1617 "B<strchr>() and B<strrchr>() are in SVr4, 4.3BSD, C89, C99. "
1618 "B<strchrnul>() is a GNU extension."
1622 #: build/C/man3/strchr.3:127
1624 "B<index>(3), B<memchr>(3), B<rindex>(3), B<string>(3), B<strlen>(3), "
1625 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), "
1626 "B<wcschr>(3), B<wcsrchr>(3)"
1630 #: build/C/man3/strcmp.3:32
1636 #: build/C/man3/strcmp.3:35
1637 msgid "strcmp, strncmp - compare two strings"
1641 #: build/C/man3/strcmp.3:40 build/C/man3/string.3:57
1643 msgid "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1647 #: build/C/man3/strcmp.3:42 build/C/man3/string.3:73
1650 "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t "
1655 #: build/C/man3/strcmp.3:56
1657 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. It "
1658 "returns an integer less than, equal to, or greater than zero if I<s1> is "
1659 "found, respectively, to be less than, to match, or be greater than I<s2>."
1663 #: build/C/man3/strcmp.3:66
1665 "The B<strncmp>() function is similar, except it compares the only first (at "
1666 "most) I<n> bytes of I<s1> and I<s2>."
1670 #: build/C/man3/strcmp.3:79
1672 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
1673 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
1674 "found, respectively, to be less than, to match, or be greater than I<s2>."
1678 #: build/C/man3/strcmp.3:91
1680 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
1681 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
1685 #: build/C/man3/strcoll.3:30
1691 #: build/C/man3/strcoll.3:33
1692 msgid "strcoll - compare two strings using the current locale"
1696 #: build/C/man3/strcoll.3:38 build/C/man3/string.3:59
1698 msgid "B<int strcoll(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1702 #: build/C/man3/strcoll.3:58
1704 "The B<strcoll>() function compares the two strings I<s1> and I<s2>. It "
1705 "returns an integer less than, equal to, or greater than zero if I<s1> is "
1706 "found, respectively, to be less than, to match, or be greater than I<s2>. "
1707 "The comparison is based on strings interpreted as appropriate for the "
1708 "program's current locale for category B<LC_COLLATE>. (See B<setlocale>(3).)"
1712 #: build/C/man3/strcoll.3:69
1714 "The B<strcoll>() function returns an integer less than, equal to, or "
1715 "greater than zero if I<s1> is found, respectively, to be less than, to "
1716 "match, or be greater than I<s2>, when both are interpreted as appropriate "
1717 "for the current locale."
1721 #: build/C/man3/strcoll.3:80
1722 msgid "In the I<POSIX> or I<C> locales B<strcoll>() is equivalent to B<strcmp>(3)."
1726 #: build/C/man3/strcoll.3:88
1728 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
1729 "B<string>(3), B<strxfrm>(3)"
1733 #: build/C/man3/strcpy.3:35
1739 #: build/C/man3/strcpy.3:38
1740 msgid "strcpy, strncpy - copy a string"
1744 #: build/C/man3/strcpy.3:43 build/C/man3/string.3:61
1746 msgid "B<char *strcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1750 #: build/C/man3/strcpy.3:45 build/C/man3/string.3:75
1752 msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1756 #: build/C/man3/strcpy.3:59
1758 "The B<strcpy>() function copies the string pointed to by I<src>, including "
1759 "the terminating null byte (\\(aq\\e0\\(aq), to the buffer pointed to by "
1760 "I<dest>. The strings may not overlap, and the destination string I<dest> "
1761 "must be large enough to receive the copy. I<Beware of buffer overruns!> "
1766 #: build/C/man3/strcpy.3:76
1768 "The B<strncpy>() function is similar, except that at most I<n> bytes of "
1769 "I<src> are copied. B<Warning>: If there is no null byte among the first "
1770 "I<n> bytes of I<src>, the string placed in I<dest> will not be "
1775 #: build/C/man3/strcpy.3:87
1777 "If the length of I<src> is less than I<n>, B<strncpy>() writes additional "
1778 "null bytes to I<dest> to ensure that a total of I<n> bytes are written."
1782 #: build/C/man3/strcpy.3:91
1783 msgid "A simple implementation of B<strncpy>() might be:"
1787 #: build/C/man3/strcpy.3:98
1791 "strncpy(char *dest, const char *src, size_t n)\n"
1797 #: build/C/man3/strcpy.3:103
1800 " for (i = 0; i E<lt> n && src[i] != \\(aq\\e0\\(aq; i++)\n"
1801 " dest[i] = src[i];\n"
1802 " for ( ; i E<lt> n; i++)\n"
1803 " dest[i] = \\(aq\\e0\\(aq;\n"
1807 #: build/C/man3/strcpy.3:116
1809 "The B<strcpy>() and B<strncpy>() functions return a pointer to the "
1810 "destination string I<dest>."
1814 #: build/C/man3/strcpy.3:131
1816 "Some programmers consider B<strncpy>() to be inefficient and error prone. "
1817 "If the programmer knows (i.e., includes code to test!) that the size of "
1818 "I<dest> is greater than the length of I<src>, then B<strcpy>() can be used."
1822 #: build/C/man3/strcpy.3:140
1824 "One valid (and intended) use of B<strncpy>() is to copy a C string to a "
1825 "fixed-length buffer while ensuring both that the buffer is not overflowed "
1826 "and that unused bytes in the target buffer are zeroed out (perhaps to "
1827 "prevent information leaks if the buffer is to be written to media or "
1828 "transmitted to another process via an interprocess communication technique)."
1832 #: build/C/man3/strcpy.3:149
1834 "If there is no terminating null byte in the first I<n> bytes of I<src>, "
1835 "B<strncpy>() produces an unterminated string in I<dest>. You can force "
1836 "termination using something like the following:"
1840 #: build/C/man3/strcpy.3:155
1843 "strncpy(buf, str, n);\n"
1845 " buf[n - 1]= \\(aq\\e0\\(aq;\n"
1849 #: build/C/man3/strcpy.3:163
1851 "(Of course, the above technique ignores the fact that information contained "
1852 "in I<src> is lost in the copying to I<dest>.)"
1856 #: build/C/man3/strcpy.3:167
1858 msgid " size_t strlcpy(char *dest, const char *src, size_t size);\n"
1861 #. http://static.usenix.org/event/usenix99/full_papers/millert/millert_html/index.html
1862 #. "strlcpy and strlcat - consistent, safe, string copy and concatenation"
1863 #. 1999 USENIX Annual Technical Conference
1864 #. https://lwn.net/Articles/506530/
1866 #: build/C/man3/strcpy.3:202
1868 "This function is similar to B<strncpy>(), but it copies at most I<size-1> "
1869 "bytes to I<dest>, always adds a terminating null byte, and does not pad the "
1870 "target with (further) null bytes. This function fixes some of the problems "
1871 "of B<strcpy>() and B<strncpy>(), but the caller must still handle the "
1872 "possibility of data loss if I<size> is too small. The return value of the "
1873 "function is the length of I<src>, which allows truncation to be easily "
1874 "detected: if the return value is greater than or equal to I<size>, "
1875 "truncation occurred. If loss of data matters, the caller I<must> either "
1876 "check the arguments before the call, or test the function return value. "
1877 "B<strlcpy>() is not present in glibc and is not standardized by POSIX, but "
1878 "is available on Linux via the I<libbsd> library."
1882 #: build/C/man3/strcpy.3:213
1884 "If the destination string of a B<strcpy>() is not large enough, then "
1885 "anything might happen. Overflowing fixed-length string buffers is a "
1886 "favorite cracker technique for taking complete control of the machine. Any "
1887 "time a program reads or copies data into a buffer, the program first needs "
1888 "to check that there's enough space. This may be unnecessary if you can show "
1889 "that overflow is impossible, but be careful: programs can get changed over "
1890 "time, in ways that may make the impossible possible."
1894 #: build/C/man3/strcpy.3:224
1896 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpcpy>(3), "
1897 "B<stpncpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<wcsncpy>(3)"
1901 #: build/C/man3/strdup.3:31
1907 #: build/C/man3/strdup.3:31
1913 #: build/C/man3/strdup.3:34
1914 msgid "strdup, strndup, strdupa, strndupa - duplicate a string"
1918 #: build/C/man3/strdup.3:39 build/C/man3/string.3:65
1920 msgid "B<char *strdup(const char *>I<s>B<);>\n"
1924 #: build/C/man3/strdup.3:41
1926 msgid "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
1930 #: build/C/man3/strdup.3:43
1932 msgid "B<char *strdupa(const char *>I<s>B<);>\n"
1936 #: build/C/man3/strdup.3:45
1938 msgid "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
1942 #: build/C/man3/strdup.3:55
1943 msgid "B<strdup>():"
1947 #: build/C/man3/strdup.3:58
1949 "_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
1950 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
1954 #: build/C/man3/strdup.3:60
1955 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
1959 #: build/C/man3/strdup.3:63
1960 msgid "B<strndup>():"
1964 #: build/C/man3/strdup.3:67
1965 msgid "_POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700"
1969 #: build/C/man3/strdup.3:75
1970 msgid "B<strdupa>(), B<strndupa>(): _GNU_SOURCE"
1974 #: build/C/man3/strdup.3:88
1976 "The B<strdup>() function returns a pointer to a new string which is a "
1977 "duplicate of the string I<s>. Memory for the new string is obtained with "
1978 "B<malloc>(3), and can be freed with B<free>(3)."
1982 #: build/C/man3/strdup.3:101
1984 "The B<strndup>() function is similar, but copies at most I<n> bytes. If "
1985 "I<s> is longer than I<n>, only I<n> bytes are copied, and a terminating null "
1986 "byte (\\(aq\\e0\\(aq) is added."
1990 #: build/C/man3/strdup.3:111
1992 "B<strdupa>() and B<strndupa>() are similar, but use B<alloca>(3) to "
1993 "allocate the buffer. They are available only when using the GNU GCC suite, "
1994 "and suffer from the same limitations described in B<alloca>(3)."
1998 #: build/C/man3/strdup.3:119
2000 "On success, the B<strdup>() function returns a pointer to the duplicated "
2001 "string. It returns NULL if insufficient memory was available, with I<errno> "
2002 "set to indicate the cause of the error."
2006 #: build/C/man3/strdup.3:119 build/C/man3/strerror.3:166
2012 #: build/C/man3/strdup.3:120
2018 #: build/C/man3/strdup.3:123
2019 msgid "Insufficient memory available to allocate duplicate string."
2022 #. 4.3BSD-Reno, not (first) 4.3BSD.
2024 #: build/C/man3/strdup.3:133
2026 "B<strdup>() conforms to SVr4, 4.3BSD, POSIX.1-2001. B<strndup>() conforms "
2027 "to POSIX.1-2008. B<strdupa>() and B<strndupa>() are GNU extensions."
2031 #: build/C/man3/strdup.3:141
2033 "B<alloca>(3), B<calloc>(3), B<free>(3), B<malloc>(3), B<realloc>(3), "
2034 "B<string>(3), B<wcsdup>(3)"
2038 #: build/C/man3/strerror.3:39
2044 #: build/C/man3/strerror.3:39
2050 #: build/C/man3/strerror.3:42
2051 msgid "strerror, strerror_r - return string describing error number"
2055 #: build/C/man3/strerror.3:47
2057 msgid "B<char *strerror(int >I<errnum>B<);>\n"
2061 #: build/C/man3/strerror.3:50
2064 "B<int strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
2065 " /* XSI-compliant */\n"
2069 #: build/C/man3/strerror.3:53
2072 "B<char *strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t "
2074 " /* GNU-specific */\n"
2078 #: build/C/man3/strerror.3:63
2079 msgid "The XSI-compliant version of B<strerror_r>() is provided if:"
2083 #: build/C/man3/strerror.3:65
2085 "(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600) && !\\ "
2090 #: build/C/man3/strerror.3:67
2091 msgid "Otherwise, the GNU-specific version is provided."
2095 #: build/C/man3/strerror.3:87
2097 "The B<strerror>() function returns a pointer to a string that describes the "
2098 "error code passed in the argument I<errnum>, possibly using the "
2099 "B<LC_MESSAGES> part of the current locale to select the appropriate "
2100 "language. (For example, if I<errnum> is B<EINVAL>, the returned description "
2101 "will \"Invalid argument\".) This string must not be modified by the "
2102 "application, but may be modified by a subsequent call to B<strerror>(). No "
2103 "library function, including B<perror>(3), will modify this string."
2107 #: build/C/man3/strerror.3:108
2109 "The B<strerror_r>() function is similar to B<strerror>(), but is thread "
2110 "safe. This function is available in two versions: an XSI-compliant version "
2111 "specified in POSIX.1-2001 (available since glibc 2.3.4, but not "
2112 "POSIX-compliant until glibc 2.13), and a GNU-specific version (available "
2113 "since glibc 2.0). The XSI-compliant version is provided with the feature "
2114 "test macros settings shown in the SYNOPSIS; otherwise the GNU-specific "
2115 "version is provided. If no feature test macros are explicitly defined, then "
2116 "(since glibc 2.4) B<_POSIX_SOURCE> is defined by default with the value "
2117 "200112L, so that the XSI-compliant version of B<strerror_r>() is provided "
2122 #: build/C/man3/strerror.3:116
2124 "The XSI-compliant B<strerror_r>() is preferred for portable applications. "
2125 "It returns the error string in the user-supplied buffer I<buf> of length "
2130 #: build/C/man3/strerror.3:136
2132 "The GNU-specific B<strerror_r>() returns a pointer to a string containing "
2133 "the error message. This may be either a pointer to a string that the "
2134 "function stores in I<buf>, or a pointer to some (immutable) static string "
2135 "(in which case I<buf> is unused). If the function stores a string in "
2136 "I<buf>, then at most I<buflen> bytes are stored (the string may be truncated "
2137 "if I<buflen> is too small and I<errnum> is unknown). The string always "
2138 "includes a terminating null byte (\\(aq\\e0\\(aq)."
2142 #: build/C/man3/strerror.3:144
2144 "The B<strerror>() and the GNU-specific B<strerror_r>() functions return "
2145 "the appropriate error description string, or an \"Unknown error nnn\" "
2146 "message if the error number is unknown."
2150 #: build/C/man3/strerror.3:157
2152 "POSIX.1-2001 and POSIX.1-2008 require that a successful call to "
2153 "B<strerror>() shall leave I<errno> unchanged, and note that, since no "
2154 "function return value is reserved to indicate an error, an application that "
2155 "wishes to check for errors should initialize I<errno> to zero before the "
2156 "call, and then check I<errno> after the call."
2160 #: build/C/man3/strerror.3:166
2162 "The XSI-compliant B<strerror_r>() function returns 0 on success. On error, "
2163 "a (positive) error number is returned (since glibc 2.13), or -1 is returned "
2164 "and I<errno> is set to indicate the error (glibc versions before 2.13)."
2168 #: build/C/man3/strerror.3:167
2174 #: build/C/man3/strerror.3:172
2175 msgid "The value of I<errnum> is not a valid error number."
2179 #: build/C/man3/strerror.3:172
2185 #: build/C/man3/strerror.3:175
2186 msgid "Insufficient storage was supplied to contain the error description string."
2190 #: build/C/man3/strerror.3:175 build/C/man3/strtok.3:169
2196 #: build/C/man3/strerror.3:176 build/C/man3/strtok.3:170
2198 msgid "Multithreading (see pthreads(7))"
2202 #: build/C/man3/strerror.3:180
2203 msgid "The B<strerror>() function is not thread-safe."
2207 #: build/C/man3/strerror.3:184
2208 msgid "The B<strerror_r>() function is thread-safe."
2212 #: build/C/man3/strerror.3:189
2214 "B<strerror>() is specified by POSIX.1-2001, C89, C99. B<strerror_r>() is "
2215 "specified by POSIX.1-2001."
2219 #: build/C/man3/strerror.3:193
2220 msgid "The GNU-specific B<strerror_r>() function is a nonstandard extension."
2223 #. e.g., Solaris 8, HP-UX 11
2224 #. e.g., FreeBSD 5.4, Tru64 5.1B
2226 #: build/C/man3/strerror.3:213
2228 "POSIX.1-2001 permits B<strerror>() to set I<errno> if the call encounters "
2229 "an error, but does not specify what value should be returned as the function "
2230 "result in the event of an error. On some systems, B<strerror>() returns "
2231 "NULL if the error number is unknown. On other systems, B<strerror>() "
2232 "returns a string something like \"Error nnn occurred\" and sets I<errno> to "
2233 "B<EINVAL> if the error number is unknown. C99 and POSIX.1-2008 require the "
2234 "return value to be non-NULL."
2238 #: build/C/man3/strerror.3:219
2239 msgid "B<err>(3), B<errno>(3), B<error>(3), B<perror>(3), B<strsignal>(3)"
2243 #: build/C/man3/strfry.3:30
2249 #: build/C/man3/strfry.3:33
2250 msgid "strfry - randomize a string"
2254 #: build/C/man3/strfry.3:40 build/C/man3/string.3:67
2256 msgid "B<char *strfry(char *>I<string>B<);>\n"
2260 #: build/C/man3/strfry.3:52
2262 "The B<strfry>() function randomizes the contents of I<string> by using "
2263 "B<rand>(3) to randomly swap characters in the string. The result is an "
2264 "anagram of I<string>."
2268 #: build/C/man3/strfry.3:57
2269 msgid "The B<strfry>() functions returns a pointer to the randomized string."
2273 #: build/C/man3/strfry.3:62
2274 msgid "The B<strfry>() function is unique to the GNU C Library."
2278 #: build/C/man3/strfry.3:65
2279 msgid "B<memfrob>(3), B<string>(3)"
2283 #: build/C/man3/string.3:30
2289 #: build/C/man3/string.3:30
2295 #: build/C/man3/string.3:36
2297 "stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, "
2298 "strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, "
2299 "strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex - string "
2304 #: build/C/man3/string.3:63 build/C/man3/strspn.3:40
2306 msgid "B<size_t strcspn(const char *>I<s>B<, const char *>I<reject>B<);>\n"
2310 #: build/C/man3/string.3:69 build/C/man3/strlen.3:38
2312 msgid "B<size_t strlen(const char *>I<s>B<);>\n"
2316 #: build/C/man3/string.3:77 build/C/man3/strpbrk.3:38
2318 msgid "B<char *strpbrk(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2322 #: build/C/man3/string.3:81 build/C/man3/strsep.3:41
2324 msgid "B<char *strsep(char **>I<stringp>B<, const char *>I<delim>B<);>\n"
2328 #: build/C/man3/string.3:83 build/C/man3/strspn.3:38
2330 msgid "B<size_t strspn(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2334 #: build/C/man3/string.3:85 build/C/man3/strstr.3:41
2336 msgid "B<char *strstr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
2340 #: build/C/man3/string.3:87
2342 msgid "B<char *strtok(char *>I<s>B<, const char *>I<delim>B<);>\n"
2346 #: build/C/man3/string.3:89 build/C/man3/strxfrm.3:38
2349 "B<size_t strxfrm(char *>I<dest>B<, const char *>I<src>B<, size_t "
2354 #: build/C/man3/string.3:94
2356 "The string functions perform string operations on null-terminated strings. "
2357 "See the individual man pages for descriptions of each function."
2361 #: build/C/man3/string.3:119
2363 "B<index>(3), B<rindex>(3), B<stpcpy>(3), B<strcasecmp>(3), B<strcat>(3), "
2364 "B<strchr>(3), B<strcmp>(3), B<strcoll>(3), B<strcpy>(3), B<strcspn>(3), "
2365 "B<strdup>(3), B<strfry>(3), B<strlen>(3), B<strncasecmp>(3), B<strncat>(3), "
2366 "B<strncmp>(3), B<strncpy>(3), B<strpbrk>(3), B<strrchr>(3), B<strsep>(3), "
2367 "B<strspn>(3), B<strstr>(3), B<strtok>(3), B<strxfrm>(3)"
2371 #: build/C/man3/strlen.3:30
2377 #: build/C/man3/strlen.3:30
2383 #: build/C/man3/strlen.3:33
2384 msgid "strlen - calculate the length of a string"
2388 #: build/C/man3/strlen.3:45
2390 "The B<strlen>() function calculates the length of the string I<s>, "
2391 "excluding the terminating null byte (\\(aq\\e0\\(aq)."
2395 #: build/C/man3/strlen.3:50
2396 msgid "The B<strlen>() function returns the number of bytes in the string I<s>."
2400 #: build/C/man3/strlen.3:57
2401 msgid "B<string>(3), B<strnlen>(3), B<wcslen>(3), B<wcsnlen>(3)"
2405 #: build/C/man3/strnlen.3:13
2411 #: build/C/man3/strnlen.3:16
2412 msgid "strnlen - determine the length of a fixed-size string"
2416 #: build/C/man3/strnlen.3:21
2418 msgid "B<size_t strnlen(const char *>I<s>B<, size_t >I<maxlen>B<);>\n"
2422 #: build/C/man3/strnlen.3:29
2423 msgid "B<strnlen>():"
2427 #: build/C/man3/strnlen.3:58
2429 "The B<strnlen>() function returns the number of bytes in the string pointed "
2430 "to by I<s>, excluding the terminating null byte (\\(aq\\e0\\(aq), but at "
2431 "most I<maxlen>. In doing this, B<strnlen>() looks only at the first "
2432 "I<maxlen> bytes at I<s> and never beyond I<s+maxlen>."
2436 #: build/C/man3/strnlen.3:71
2438 "The B<strnlen>() function returns I<strlen(s)>, if that is less than "
2439 "I<maxlen>, or I<maxlen> if there is no null byte (\\(aq\\e0\\(aq) among the "
2440 "first I<maxlen> bytes pointed to by I<s>."
2444 #: build/C/man3/strnlen.3:73
2445 msgid "POSIX.1-2008."
2449 #: build/C/man3/strnlen.3:75
2450 msgid "B<strlen>(3)"
2454 #: build/C/man3/strpbrk.3:30
2460 #: build/C/man3/strpbrk.3:33
2461 msgid "strpbrk - search a string for any of a set of bytes"
2465 #: build/C/man3/strpbrk.3:47
2467 "The B<strpbrk>() function locates the first occurrence in the string I<s> "
2468 "of any of the bytes in the string I<accept>."
2472 #: build/C/man3/strpbrk.3:56
2474 "The B<strpbrk>() function returns a pointer to the byte in I<s> that "
2475 "matches one of the bytes in I<accept>, or NULL if no such byte is found."
2479 #: build/C/man3/strpbrk.3:69
2481 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2482 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), B<wcspbrk>(3)"
2486 #: build/C/man3/strsep.3:33
2492 #: build/C/man3/strsep.3:36
2493 msgid "strsep - extract token from string"
2497 #: build/C/man3/strsep.3:50
2498 msgid "B<strsep>(): _BSD_SOURCE"
2502 #: build/C/man3/strsep.3:74
2504 "If I<*stringp> is NULL, the B<strsep>() function returns NULL and does "
2505 "nothing else. Otherwise, this function finds the first token in the string "
2506 "I<*stringp>, where tokens are delimited by symbols in the string I<delim>. "
2507 "This token is terminated by overwriting the delimiter with a null byte "
2508 "(\\(aq\\e0\\(aq) and I<*stringp> is updated to point past the token. In "
2509 "case no delimiter was found, the token is taken to be the entire string "
2510 "I<*stringp>, and I<*stringp> is made NULL."
2514 #: build/C/man3/strsep.3:80
2516 "The B<strsep>() function returns a pointer to the token, that is, it "
2517 "returns the original value of I<*stringp>."
2521 #: build/C/man3/strsep.3:82
2526 #: build/C/man3/strsep.3:91
2528 "The B<strsep>() function was introduced as a replacement for B<strtok>(3), "
2529 "since the latter cannot handle empty fields. However, B<strtok>(3) "
2530 "conforms to C89/C99 and hence is more portable."
2534 #: build/C/man3/strsep.3:94
2535 msgid "Be cautious when using this function. If you do use it, note that:"
2539 #: build/C/man3/strsep.3:96
2540 msgid "This function modifies its first argument."
2544 #: build/C/man3/strsep.3:98
2545 msgid "This function cannot be used on constant strings."
2549 #: build/C/man3/strsep.3:100
2550 msgid "The identity of the delimiting character is lost."
2554 #: build/C/man3/strsep.3:110
2556 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2557 "B<strpbrk>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
2561 #: build/C/man3/strsignal.3:30
2567 #: build/C/man3/strsignal.3:30
2573 #: build/C/man3/strsignal.3:33
2574 msgid "strsignal - return string describing signal"
2578 #: build/C/man3/strsignal.3:38
2580 msgid "B<char *strsignal(int >I<sig>B<);>\n"
2584 #: build/C/man3/strsignal.3:40
2586 msgid "B<extern const char * const >I<sys_siglist>B<[];>\n"
2590 #: build/C/man3/strsignal.3:48
2591 msgid "B<strsignal>():"
2595 #: build/C/man3/strsignal.3:68
2597 "The B<strsignal>() function returns a string describing the signal number "
2598 "passed in the argument I<sig>. The string can be used only until the next "
2599 "call to B<strsignal>()."
2603 #: build/C/man3/strsignal.3:77
2605 "The array I<sys_siglist> holds the signal description strings indexed by "
2606 "signal number. The B<strsignal>() function should be used if possible "
2607 "instead of this array."
2611 #: build/C/man3/strsignal.3:84
2613 "The B<strsignal>() function returns the appropriate description string, or "
2614 "an unknown signal message if the signal number is invalid. On some systems "
2615 "(but not on Linux), a NULL pointer may be returned instead for an invalid "
2620 #: build/C/man3/strsignal.3:87
2621 msgid "POSIX.1-2008. Present on Solaris and the BSDs."
2625 #: build/C/man3/strsignal.3:90
2626 msgid "B<psignal>(3), B<strerror>(3)"
2630 #: build/C/man3/strspn.3:30
2636 #: build/C/man3/strspn.3:33
2637 msgid "strspn, strcspn - search a string for a set of bytes"
2641 #: build/C/man3/strspn.3:49
2643 "The B<strspn>() function calculates the length (in bytes) of the initial "
2644 "segment of I<s> which consists entirely of bytes in I<accept>."
2648 #: build/C/man3/strspn.3:57
2650 "The B<strcspn>() function calculates the length of the initial segment of "
2651 "I<s> which consists entirely of bytes not in I<reject>."
2655 #: build/C/man3/strspn.3:66
2657 "The B<strspn>() function returns the number of bytes in the initial segment "
2658 "of I<s> which consist only of bytes from I<accept>."
2662 #: build/C/man3/strspn.3:74
2664 "The B<strcspn>() function returns the number of bytes in the initial "
2665 "segment of I<s> which are not in the string I<reject>."
2669 #: build/C/man3/strspn.3:88
2671 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2672 "B<strpbrk>(3), B<strsep>(3), B<strstr>(3), B<strtok>(3), B<wcscspn>(3), "
2677 #: build/C/man3/strstr.3:33
2683 #: build/C/man3/strstr.3:36
2684 msgid "strstr, strcasestr - locate a substring"
2688 #: build/C/man3/strstr.3:47
2690 msgid "B<char *strcasestr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
2694 #: build/C/man3/strstr.3:56
2696 "The B<strstr>() function finds the first occurrence of the substring "
2697 "I<needle> in the string I<haystack>. The terminating null bytes "
2698 "(\\(aq\\e0\\(aq) are not compared."
2702 #: build/C/man3/strstr.3:62
2704 "The B<strcasestr>() function is like B<strstr>(), but ignores the case of "
2709 #: build/C/man3/strstr.3:65
2711 "These functions return a pointer to the beginning of the substring, or NULL "
2712 "if the substring is not found."
2716 #: build/C/man3/strstr.3:72
2718 "The B<strstr>() function conforms to C89 and C99. The B<strcasestr>() "
2719 "function is a nonstandard extension."
2723 #: build/C/man3/strstr.3:84
2725 "Early versions of Linux libc (like 4.5.26) would not allow an empty "
2726 "I<needle> argument for B<strstr>(). Later versions (like 4.6.27) work "
2727 "correctly, and return I<haystack> when I<needle> is empty."
2731 #: build/C/man3/strstr.3:96
2733 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strcasecmp>(3), B<strchr>(3), "
2734 "B<string>(3), B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strtok>(3), "
2739 #: build/C/man3/strtok.3:32
2745 #: build/C/man3/strtok.3:32
2751 #: build/C/man3/strtok.3:35
2752 msgid "strtok, strtok_r - extract tokens from strings"
2756 #: build/C/man3/strtok.3:40
2758 msgid "B<char *strtok(char *>I<str>B<, const char *>I<delim>B<);>\n"
2762 #: build/C/man3/strtok.3:42
2765 "B<char *strtok_r(char *>I<str>B<, const char *>I<delim>B<, char "
2766 "**>I<saveptr>B<);>\n"
2770 #: build/C/man3/strtok.3:53
2772 "B<strtok_r>(): _SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 1 "
2773 "|| _XOPEN_SOURCE || _POSIX_SOURCE"
2777 #: build/C/man3/strtok.3:66
2779 "The B<strtok>() function breaks a string into a sequence of zero or more "
2780 "nonempty tokens. On the first call to B<strtok>() the string to be parsed "
2781 "should be specified in I<str>. In each subsequent call that should parse "
2782 "the same string, I<str> must be NULL."
2786 #: build/C/man3/strtok.3:75
2788 "The I<delim> argument specifies a set of bytes that delimit the tokens in "
2789 "the parsed string. The caller may specify different strings in I<delim> in "
2790 "successive calls that parse the same string."
2794 #: build/C/man3/strtok.3:84
2796 "Each call to B<strtok>() returns a pointer to a null-terminated string "
2797 "containing the next token. This string does not include the delimiting "
2798 "byte. If no more tokens are found, B<strtok>() returns NULL."
2802 #: build/C/man3/strtok.3:104
2804 "A sequence of calls to B<strtok>() that operate on the same string "
2805 "maintains a pointer that determines the point from which to start searching "
2806 "for the next token. The first call to B<strtok>() sets this pointer to "
2807 "point to the first byte of the string. The start of the next token is "
2808 "determined by scanning forward for the next nondelimiter byte in I<str>. If "
2809 "such a byte is found, it is taken as the start of the next token. If no "
2810 "such byte is found, then there are no more tokens, and B<strtok>() returns "
2811 "NULL. (A string that is empty or that contains only delimiters will thus "
2812 "cause B<strtok>() to return NULL on the first call.)"
2816 #: build/C/man3/strtok.3:117
2818 "The end of each token is found by scanning forward until either the next "
2819 "delimiter byte is found or until the terminating null byte (\\(aq\\e0\\(aq) "
2820 "is encountered. If a delimiter byte is found, it is overwritten with a null "
2821 "byte to terminate the current token, and B<strtok>() saves a pointer to the "
2822 "following byte; that pointer will be used as the starting point when "
2823 "searching for the next token. In this case, B<strtok>() returns a pointer "
2824 "to the start of the found token."
2828 #: build/C/man3/strtok.3:131
2830 "From the above description, it follows that a sequence of two or more "
2831 "contiguous delimiter bytes in the parsed string is considered to be a single "
2832 "delimiter, and that delimiter bytes at the start or end of the string are "
2833 "ignored. Put another way: the tokens returned by B<strtok>() are always "
2834 "nonempty strings. Thus, for example, given the string \"I<aaa;;bbb,>\", "
2835 "successive calls to B<strtok>() that specify the delimiter string \"I<;,>\" "
2836 "would return the strings \"I<aaa>\" and \"I<bbb>\", and then a NULL pointer."
2840 #: build/C/man3/strtok.3:144
2842 "The B<strtok_r>() function is a reentrant version B<strtok>(). The "
2843 "I<saveptr> argument is a pointer to a I<char\\ *> variable that is used "
2844 "internally by B<strtok_r>() in order to maintain context between successive "
2845 "calls that parse the same string."
2849 #: build/C/man3/strtok.3:156
2851 "On the first call to B<strtok_r>(), I<str> should point to the string to be "
2852 "parsed, and the value of I<saveptr> is ignored. In subsequent calls, I<str> "
2853 "should be NULL, and I<saveptr> should be unchanged since the previous call."
2857 #: build/C/man3/strtok.3:162
2859 "Different strings may be parsed concurrently using sequences of calls to "
2860 "B<strtok_r>() that specify different I<saveptr> arguments."
2864 #: build/C/man3/strtok.3:169
2866 "The B<strtok>() and B<strtok_r>() functions return a pointer to the next "
2867 "token, or NULL if there are no more tokens."
2871 #: build/C/man3/strtok.3:174
2872 msgid "The B<strtok>() function is not thread-safe."
2876 #: build/C/man3/strtok.3:178
2877 msgid "The B<strtok_r>() function is thread-safe."
2881 #: build/C/man3/strtok.3:179
2887 #: build/C/man3/strtok.3:182
2888 msgid "SVr4, POSIX.1-2001, 4.3BSD, C89, C99."
2892 #: build/C/man3/strtok.3:182
2894 msgid "B<strtok_r>()"
2898 #: build/C/man3/strtok.3:185
2899 msgid "POSIX.1-2001."
2903 #: build/C/man3/strtok.3:188
2904 msgid "Be cautious when using these functions. If you do use them, note that:"
2908 #: build/C/man3/strtok.3:190
2909 msgid "These functions modify their first argument."
2913 #: build/C/man3/strtok.3:192
2914 msgid "These functions cannot be used on constant strings."
2918 #: build/C/man3/strtok.3:194
2919 msgid "The identity of the delimiting byte is lost."
2923 #: build/C/man3/strtok.3:201
2925 "The B<strtok>() function uses a static buffer while parsing, so it's not "
2926 "thread safe. Use B<strtok_r>() if this matters to you."
2930 #: build/C/man3/strtok.3:210
2932 "The program below uses nested loops that employ B<strtok_r>() to break a "
2933 "string into a two-level hierarchy of tokens. The first command-line "
2934 "argument specifies the string to be parsed. The second argument specifies "
2935 "the delimiter byte(s) to be used to separate that string into \"major\" "
2936 "tokens. The third argument specifies the delimiter byte(s) to be used to "
2937 "separate the \"major\" tokens into subtokens."
2941 #: build/C/man3/strtok.3:212
2942 msgid "An example of the output produced by this program is the following:"
2946 #: build/C/man3/strtok.3:224
2949 "$B< ./a.out \\(aqa/bbb///cc;xxx:yyy:\\(aq \\(aq:;\\(aq \\(aq/\\(aq>\n"
2961 #: build/C/man3/strtok.3:226
2963 msgid "Program source"
2967 #: build/C/man3/strtok.3:232
2970 "#include E<lt>stdio.hE<gt>\n"
2971 "#include E<lt>stdlib.hE<gt>\n"
2972 "#include E<lt>string.hE<gt>\n"
2976 #: build/C/man3/strtok.3:239
2980 "main(int argc, char *argv[])\n"
2982 " char *str1, *str2, *token, *subtoken;\n"
2983 " char *saveptr1, *saveptr2;\n"
2988 #: build/C/man3/strtok.3:245
2991 " if (argc != 4) {\n"
2992 " fprintf(stderr, \"Usage: %s string delim subdelim\\en\",\n"
2994 " exit(EXIT_FAILURE);\n"
2999 #: build/C/man3/strtok.3:251
3002 " for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) {\n"
3003 " token = strtok_r(str1, argv[2], &saveptr1);\n"
3004 " if (token == NULL)\n"
3006 " printf(\"%d: %s\\en\", j, token);\n"
3010 #: build/C/man3/strtok.3:259
3013 " for (str2 = token; ; str2 = NULL) {\n"
3014 " subtoken = strtok_r(str2, argv[3], &saveptr2);\n"
3015 " if (subtoken == NULL)\n"
3017 " printf(\"\\t --E<gt> %s\\en\", subtoken);\n"
3023 #: build/C/man3/strtok.3:262
3026 " exit(EXIT_SUCCESS);\n"
3031 #: build/C/man3/strtok.3:268
3033 "Another example program using B<strtok>() can be found in "
3034 "B<getaddrinfo_a>(3)."
3038 #: build/C/man3/strtok.3:279
3040 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3041 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
3045 #: build/C/man3/strverscmp.3:25
3051 #: build/C/man3/strverscmp.3:25
3057 #: build/C/man3/strverscmp.3:28
3058 msgid "strverscmp - compare two version strings"
3062 #: build/C/man3/strverscmp.3:35
3064 msgid "B<int strverscmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
3067 #. classical solution: "rename jan jan0 jan?"
3069 #: build/C/man3/strverscmp.3:52
3071 "Often one has files I<jan1>, I<jan2>, ..., I<jan9>, I<jan10>, ... and it "
3072 "feels wrong when B<ls>(1) orders them I<jan1>, I<jan10>, ..., I<jan2>, ..., "
3073 "I<jan9>. In order to rectify this, GNU introduced the I<-v> option to "
3074 "B<ls>(1), which is implemented using B<versionsort>(3), which again uses "
3079 #: build/C/man3/strverscmp.3:63
3081 "Thus, the task of B<strverscmp>() is to compare two strings and find the "
3082 "\"right\" order, while B<strcmp>(3) finds only the lexicographic order. "
3083 "This function does not use the locale category B<LC_COLLATE>, so is meant "
3084 "mostly for situations where the strings are expected to be in ASCII."
3088 #: build/C/man3/strverscmp.3:81
3090 "What this function does is the following. If both strings are equal, return "
3091 "0. Otherwise find the position between two bytes with the property that "
3092 "before it both strings are equal, while directly after it there is a "
3093 "difference. Find the largest consecutive digit strings containing (or "
3094 "starting at, or ending at) this position. If one or both of these is empty, "
3095 "then return what B<strcmp>(3) would have returned (numerical ordering of "
3096 "byte values). Otherwise, compare both digit strings numerically, where "
3097 "digit strings with one or more leading zeros are interpreted as if they have "
3098 "a decimal point in front (so that in particular digit strings with more "
3099 "leading zeros come before digit strings with fewer leading zeros). Thus, "
3100 "the ordering is I<000>, I<00>, I<01>, I<010>, I<09>, I<0>, I<1>, I<9>, "
3105 #: build/C/man3/strverscmp.3:90
3107 "The B<strverscmp>() function returns an integer less than, equal to, or "
3108 "greater than zero if I<s1> is found, respectively, to be earlier than, equal "
3109 "to, or later than I<s2>."
3113 #: build/C/man3/strverscmp.3:97
3114 msgid "B<rename>(1), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3)"
3118 #: build/C/man3/strxfrm.3:30
3124 #: build/C/man3/strxfrm.3:33
3125 msgid "strxfrm - string transformation"
3129 #: build/C/man3/strxfrm.3:62
3131 "The B<strxfrm>() function transforms the I<src> string into a form such "
3132 "that the result of B<strcmp>(3) on two strings that have been transformed "
3133 "with B<strxfrm>() is the same as the result of B<strcoll>(3) on the two "
3134 "strings before their transformation. The first I<n> bytes of the "
3135 "transformed string are placed in I<dest>. The transformation is based on "
3136 "the program's current locale for category B<LC_COLLATE>. (See "
3141 #: build/C/man3/strxfrm.3:76
3143 "The B<strxfrm>() function returns the number of bytes required to store the "
3144 "transformed string in I<dest> excluding the terminating null byte "
3145 "(\\(aq\\e0\\(aq). If the value returned is I<n> or more, the contents of "
3146 "I<dest> are indeterminate."
3150 #: build/C/man3/strxfrm.3:88
3152 "In the I<POSIX> or I<C> locales B<strxfrm>() is equivalent to copying the "
3153 "string with B<strncpy>(3)."
3157 #: build/C/man3/strxfrm.3:96
3159 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
3160 "B<strcoll>(3), B<string>(3)"