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: 2015-01-04 23:49+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
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
63 msgid "B<#include E<lt>strings.hE<gt>>\n"
67 #: build/C/man3/bcmp.3:39 build/C/man3/bstring.3:41
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:72 build/C/man3/strfry.3:41 build/C/man3/string.3:204 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:160 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:73 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:64 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/strcat.3:130 build/C/man3/strchr.3:107 build/C/man3/strcmp.3:79 build/C/man3/strcpy.3:116 build/C/man3/strerror.3:202 build/C/man3/strlen.3:50 build/C/man3/strnlen.3:71 build/C/man3/strpbrk.3:56 build/C/man3/strsep.3:79 build/C/man3/strspn.3:74 build/C/man3/strstr.3:65 build/C/man3/strtok.3:169
106 #: build/C/man3/bcmp.3:62 build/C/man3/bcopy.3:55 build/C/man3/bzero.3:51 build/C/man3/ffs.3:92 build/C/man3/index.3:63 build/C/man3/memccpy.3:71 build/C/man3/memchr.3:125 build/C/man3/memcmp.3:65 build/C/man3/memcpy.3:53 build/C/man3/memfrob.3:59 build/C/man3/memmem.3:60 build/C/man3/memmove.3:63 build/C/man3/mempcpy.3:61 build/C/man3/memset.3:55 build/C/man3/stpcpy.3:72 build/C/man3/stpncpy.3:92 build/C/man3/strcat.3:131 build/C/man3/strchr.3:108 build/C/man3/strcmp.3:80 build/C/man3/strcpy.3:117 build/C/man3/strerror.3:203 build/C/man3/strlen.3:51 build/C/man3/strnlen.3:72 build/C/man3/strpbrk.3:57 build/C/man3/strsep.3:80 build/C/man3/strspn.3:75 build/C/man3/strstr.3:66 build/C/man3/strtok.3:170
108 msgid "Multithreading (see pthreads(7))"
112 #: build/C/man3/bcmp.3:66
113 msgid "The B<bcmp>() function is thread-safe."
117 #: build/C/man3/bcmp.3:66 build/C/man3/bcopy.3:59 build/C/man3/bzero.3:55 build/C/man3/ffs.3:99 build/C/man3/index.3:69 build/C/man3/memccpy.3:75 build/C/man3/memchr.3:132 build/C/man3/memcmp.3:69 build/C/man3/memcpy.3:57 build/C/man3/memfrob.3:63 build/C/man3/memmem.3:64 build/C/man3/memmove.3:67 build/C/man3/mempcpy.3:67 build/C/man3/memset.3:59 build/C/man3/stpcpy.3:76 build/C/man3/stpncpy.3:96 build/C/man3/strcasecmp.3:76 build/C/man3/strcat.3:137 build/C/man3/strchr.3:115 build/C/man3/strcmp.3:86 build/C/man3/strcoll.3:69 build/C/man3/strcpy.3:123 build/C/man3/strdup.3:123 build/C/man3/strerror.3:216 build/C/man3/strfry.3:57 build/C/man3/strlen.3:55 build/C/man3/strnlen.3:76 build/C/man3/strpbrk.3:61 build/C/man3/strsep.3:84 build/C/man3/strsignal.3:84 build/C/man3/strspn.3:81 build/C/man3/strstr.3:77 build/C/man3/strtok.3:178 build/C/man3/strverscmp.3:90 build/C/man3/strxfrm.3:76
119 msgid "CONFORMING TO"
123 #: build/C/man3/bcmp.3:73
125 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
126 "B<memcmp>(3) in new programs. POSIX.1-2008 removes the specification of "
131 #: build/C/man3/bcmp.3:73 build/C/man3/bcopy.3:73 build/C/man3/bstring.3:82 build/C/man3/bzero.3:62 build/C/man3/ffs.3:111 build/C/man3/index.3:80 build/C/man3/memccpy.3:77 build/C/man3/memchr.3:144 build/C/man3/memcmp.3:77 build/C/man3/memcpy.3:59 build/C/man3/memfrob.3:68 build/C/man3/memmem.3:91 build/C/man3/memmove.3:69 build/C/man3/mempcpy.3:80 build/C/man3/memset.3:61 build/C/man3/stpcpy.3:115 build/C/man3/stpncpy.3:100 build/C/man3/strcasecmp.3:92 build/C/man3/strcat.3:176 build/C/man3/strchr.3:122 build/C/man3/strcmp.3:88 build/C/man3/strcoll.3:80 build/C/man3/strcpy.3:226 build/C/man3/strdup.3:133 build/C/man3/strerror.3:248 build/C/man3/strfry.3:62 build/C/man3/string.3:208 build/C/man3/strlen.3:57 build/C/man3/strnlen.3:78 build/C/man3/strpbrk.3:63 build/C/man3/strsep.3:104 build/C/man3/strsignal.3:87 build/C/man3/strspn.3:83 build/C/man3/strstr.3:96 build/C/man3/strtok.3:268 build/C/man3/strverscmp.3:92 build/C/man3/strxfrm.3:88
137 #: build/C/man3/bcmp.3:80
139 "B<memcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), "
140 "B<strncasecmp>(3), B<strncmp>(3)"
144 #: build/C/man3/bcmp.3:80 build/C/man3/bcopy.3:79 build/C/man3/bstring.3:94 build/C/man3/bzero.3:65 build/C/man3/ffs.3:113 build/C/man3/index.3:90 build/C/man3/memccpy.3:83 build/C/man3/memchr.3:155 build/C/man3/memcmp.3:85 build/C/man3/memcpy.3:67 build/C/man3/memfrob.3:70 build/C/man3/memmem.3:93 build/C/man3/memmove.3:76 build/C/man3/mempcpy.3:85 build/C/man3/memset.3:65 build/C/man3/stpcpy.3:124 build/C/man3/stpncpy.3:103 build/C/man3/strcasecmp.3:101 build/C/man3/strcat.3:185 build/C/man3/strchr.3:135 build/C/man3/strcmp.3:98 build/C/man3/strcoll.3:88 build/C/man3/strcpy.3:237 build/C/man3/strdup.3:141 build/C/man3/strerror.3:255 build/C/man3/strfry.3:65 build/C/man3/string.3:233 build/C/man3/strlen.3:62 build/C/man3/strnlen.3:80 build/C/man3/strpbrk.3:74 build/C/man3/strsep.3:114 build/C/man3/strsignal.3:90 build/C/man3/strspn.3:95 build/C/man3/strstr.3:108 build/C/man3/strtok.3:279 build/C/man3/strverscmp.3:97 build/C/man3/strxfrm.3:96
150 #: build/C/man3/bcmp.3:88 build/C/man3/bcopy.3:87 build/C/man3/bstring.3:102 build/C/man3/bzero.3:73 build/C/man3/ffs.3:121 build/C/man3/index.3:98 build/C/man3/memccpy.3:91 build/C/man3/memchr.3:163 build/C/man3/memcmp.3:93 build/C/man3/memcpy.3:75 build/C/man3/memfrob.3:78 build/C/man3/memmem.3:101 build/C/man3/memmove.3:84 build/C/man3/mempcpy.3:93 build/C/man3/memset.3:73 build/C/man3/stpcpy.3:132 build/C/man3/stpncpy.3:111 build/C/man3/strcasecmp.3:109 build/C/man3/strcat.3:193 build/C/man3/strchr.3:143 build/C/man3/strcmp.3:106 build/C/man3/strcoll.3:96 build/C/man3/strcpy.3:245 build/C/man3/strdup.3:149 build/C/man3/strerror.3:263 build/C/man3/strfry.3:73 build/C/man3/string.3:241 build/C/man3/strlen.3:70 build/C/man3/strnlen.3:88 build/C/man3/strpbrk.3:82 build/C/man3/strsep.3:122 build/C/man3/strsignal.3:98 build/C/man3/strspn.3:103 build/C/man3/strstr.3:116 build/C/man3/strtok.3:287 build/C/man3/strverscmp.3:105 build/C/man3/strxfrm.3:104
152 "This page is part of release 3.76 of the Linux I<man-pages> project. A "
153 "description of the project, information about reporting bugs, and the latest "
154 "version of this page, can be found at "
155 "\\%http://www.kernel.org/doc/man-pages/."
159 #: build/C/man3/bcopy.3:33
165 #: build/C/man3/bcopy.3:33 build/C/man3/bzero.3:31
171 #: build/C/man3/bcopy.3:36
172 msgid "bcopy - copy byte sequence"
176 #: build/C/man3/bcopy.3:41 build/C/man3/bstring.3:43
178 msgid "B<void bcopy(const void *>I<src>B<, void *>I<dest>B<, size_t >I<n>B<);>\n"
182 #: build/C/man3/bcopy.3:52
184 "The B<bcopy>() function copies I<n> bytes from I<src> to I<dest>. The "
185 "result is correct, even when both areas overlap."
189 #: build/C/man3/bcopy.3:54 build/C/man3/bzero.3:50
194 #: build/C/man3/bcopy.3:59
195 msgid "The B<bcopy>() function is thread-safe."
199 #: build/C/man3/bcopy.3:73
201 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
202 "B<memcpy>(3) or B<memmove>(3) in new programs. Note that the first two "
203 "arguments are interchanged for B<memcpy>(3) and B<memmove>(3). "
204 "POSIX.1-2008 removes the specification of B<bcopy>()."
208 #: build/C/man3/bcopy.3:79
209 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
213 #: build/C/man3/bstring.3:32
219 #: build/C/man3/bstring.3:32
225 #: build/C/man3/bstring.3:36
227 "bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem, "
228 "memmove, memset - byte string operations"
232 #: 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/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
234 msgid "B<#include E<lt>string.hE<gt>>\n"
238 #: build/C/man3/bstring.3:45 build/C/man3/bzero.3:39
240 msgid "B<void bzero(void *>I<s>B<, size_t >I<n>B<);>\n"
244 #: build/C/man3/bstring.3:47 build/C/man3/memccpy.3:38
247 "B<void *memccpy(void *>I<dest>B<, const void *>I<src>B<, int >I<c>B<, size_t "
252 #: build/C/man3/bstring.3:49 build/C/man3/memchr.3:40
254 msgid "B<void *memchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
258 #: build/C/man3/bstring.3:51 build/C/man3/memcmp.3:38
260 msgid "B<int memcmp(const void *>I<s1>B<, const void *>I<s2>B<, size_t >I<n>B<);>\n"
264 #: build/C/man3/bstring.3:53 build/C/man3/memcpy.3:38
266 msgid "B<void *memcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
270 #: build/C/man3/bstring.3:55 build/C/man3/memfrob.3:39
272 msgid "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n"
276 #: build/C/man3/bstring.3:58
279 "B<void *memmem(const void *>I<needle>B<, size_t >I<needlelen>B<,>\n"
280 "B< const void *>I<haystack>B<, size_t >I<haystacklen>B<);>\n"
284 #: build/C/man3/bstring.3:60 build/C/man3/memmove.3:38
286 msgid "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
290 #: build/C/man3/bstring.3:62 build/C/man3/memset.3:38
292 msgid "B<void *memset(void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
296 #: build/C/man3/bstring.3:68
298 "The byte string functions perform operations on strings (byte arrays) that "
299 "are not necessarily null-terminated. See the individual man pages for "
300 "descriptions of each function."
304 #: build/C/man3/bstring.3:68 build/C/man3/ffs.3:108 build/C/man3/memcmp.3:71 build/C/man3/strcasecmp.3:78 build/C/man3/strcat.3:139 build/C/man3/strcoll.3:71 build/C/man3/strcpy.3:125 build/C/man3/strsep.3:86 build/C/man3/strxfrm.3:78
309 #. The old functions are not even available on some non-GNU/Linux systems.
311 #: build/C/man3/bstring.3:82
313 "The functions B<bcmp>(), B<bcopy>() and B<bzero>() are obsolete. Use "
314 "B<memcmp>(), B<memcpy>() and B<memset>() instead."
318 #: build/C/man3/bstring.3:94
320 "B<bcmp>(3), B<bcopy>(3), B<bzero>(3), B<memccpy>(3), B<memchr>(3), "
321 "B<memcmp>(3), B<memcpy>(3), B<memfrob>(3), B<memmem>(3), B<memmove>(3), "
326 #: build/C/man3/bzero.3:31
332 #: build/C/man3/bzero.3:34
333 msgid "bzero - write zero-valued bytes"
337 #: build/C/man3/bzero.3:48
339 "The B<bzero>() function sets the first I<n> bytes of the area starting at "
340 "I<s> to zero (bytes containing \\(aq\\e0\\(aq)."
344 #: build/C/man3/bzero.3:55
345 msgid "The B<bzero>() function is thread-safe."
349 #: build/C/man3/bzero.3:62
351 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
352 "B<memset>(3) in new programs. POSIX.1-2008 removes the specification of "
357 #: build/C/man3/bzero.3:65
358 msgid "B<memset>(3), B<swab>(3)"
362 #: build/C/man3/ffs.3:33
368 #: build/C/man3/ffs.3:33
374 #: 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
380 #: build/C/man3/ffs.3:36
381 msgid "ffs, ffsl, ffsll - find first bit set in a word"
385 #: build/C/man3/ffs.3:41
387 msgid "B<int ffs(int >I<i>B<);>\n"
391 #: build/C/man3/ffs.3:45
393 msgid "B<int ffsl(long int >I<i>B<);>\n"
397 #: build/C/man3/ffs.3:47
399 msgid "B<int ffsll(long long int >I<i>B<);>\n"
403 #: 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:60 build/C/man3/strnlen.3:26 build/C/man3/strsep.3:46 build/C/man3/strsignal.3:45 build/C/man3/strtok.3:47
404 msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
408 #: build/C/man3/ffs.3:57
413 #: build/C/man3/ffs.3:58
415 msgid "Since glibc 2.12:"
419 #: build/C/man3/ffs.3:62
421 "_SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L || "
422 "_XOPEN_SOURCE\\ E<gt>=\\ 700 ||"
426 #: build/C/man3/ffs.3:62
428 msgid "Before glibc 2.12:"
432 #: build/C/man3/ffs.3:65
437 #: build/C/man3/ffs.3:69
438 msgid "B<ffsl>(), B<ffsll>():"
442 #: 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
447 #: build/C/man3/ffs.3:87
449 "The B<ffs>() function returns the position of the first (least significant) "
450 "bit set in the word I<i>. The least significant bit is position 1 and the "
451 "most significant position is, for example, 32 or 64. The functions "
452 "B<ffsll>() and B<ffsl>() do the same but take arguments of possibly "
457 #: build/C/man3/ffs.3:91
459 "These functions return the position of the first bit set, or 0 if no bits "
464 #: build/C/man3/ffs.3:99
465 msgid "The B<ffs>(), B<ffsl>(), and B<ffsll>() functions are thread-safe."
469 #: build/C/man3/ffs.3:102
470 msgid "B<ffs>(): 4.3BSD, POSIX.1-2001."
474 #: build/C/man3/ffs.3:108
475 msgid "The B<ffsl>() and B<ffsll>() functions are glibc extensions."
479 #: build/C/man3/ffs.3:111
480 msgid "BSD systems have a prototype in I<E<lt>string.hE<gt>>."
484 #: build/C/man3/ffs.3:113
489 #: build/C/man3/index.3:31
495 #: build/C/man3/index.3:31
501 #: build/C/man3/index.3:34
502 msgid "index, rindex - locate character in string"
506 #: build/C/man3/index.3:39
508 msgid "B<char *index(const char *>I<s>B<, int >I<c>B<);>\n"
512 #: build/C/man3/index.3:41
514 msgid "B<char *rindex(const char *>I<s>B<, int >I<c>B<);>\n"
518 #: build/C/man3/index.3:47
520 "The B<index>() function returns a pointer to the first occurrence of the "
521 "character I<c> in the string I<s>."
525 #: build/C/man3/index.3:52
527 "The B<rindex>() function returns a pointer to the last occurrence of the "
528 "character I<c> in the string I<s>."
532 #: build/C/man3/index.3:55
534 "The terminating null byte (\\(aq\\e0\\(aq) is considered to be a part of the "
539 #: build/C/man3/index.3:62
541 "The B<index>() and B<rindex>() functions return a pointer to the matched "
542 "character or NULL if the character is not found."
546 #: build/C/man3/index.3:69
547 msgid "The B<index>() and B<rindex>() functions are thread-safe."
551 #: build/C/man3/index.3:80
553 "4.3BSD; marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removes the "
554 "specifications of B<index>() and B<rindex>(), recommending B<strchr>(3) "
555 "and B<strrchr>(3) instead."
559 #: build/C/man3/index.3:90
561 "B<memchr>(3), B<strchr>(3), B<string>(3), B<strpbrk>(3), B<strrchr>(3), "
562 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
566 #: build/C/man3/memccpy.3:30
572 #: build/C/man3/memccpy.3:30 build/C/man3/memchr.3:32
578 #: build/C/man3/memccpy.3:33
579 msgid "memccpy - copy memory area"
583 #: build/C/man3/memccpy.3:53
585 "The B<memccpy>() function copies no more than I<n> bytes from memory area "
586 "I<src> to memory area I<dest>, stopping when the character I<c> is found."
590 #: build/C/man3/memccpy.3:55
591 msgid "If the memory areas overlap, the results are undefined."
595 #: build/C/man3/memccpy.3:70
597 "The B<memccpy>() function returns a pointer to the next character in "
598 "I<dest> after I<c>, or NULL if I<c> was not found in the first I<n> "
599 "characters of I<src>."
603 #: build/C/man3/memccpy.3:75
604 msgid "The B<memccpy>() function is thread-safe."
608 #: build/C/man3/memccpy.3:77
609 msgid "SVr4, 4.3BSD, POSIX.1-2001."
613 #: build/C/man3/memccpy.3:83
614 msgid "B<bcopy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
618 #: build/C/man3/memchr.3:32
624 #: build/C/man3/memchr.3:35
625 msgid "memchr, memrchr, rawmemchr - scan memory for a character"
629 #: build/C/man3/memchr.3:42
631 msgid "B<void *memrchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
635 #: build/C/man3/memchr.3:44
637 msgid "B<void *rawmemchr(const void *>I<s>B<, int >I<c>B<);>\n"
641 #: build/C/man3/memchr.3:54
642 msgid "B<memrchr>(), B<rawmemchr>(): _GNU_SOURCE"
646 #: build/C/man3/memchr.3:70
648 "The B<memchr>() function scans the initial I<n> bytes of the memory area "
649 "pointed to by I<s> for the first instance of I<c>. Both I<c> and the bytes "
650 "of the memory area pointed to by I<s> are interpreted as I<unsigned char>."
654 #: build/C/man3/memchr.3:81
656 "The B<memrchr>() function is like the B<memchr>() function, except that it "
657 "searches backward from the end of the I<n> bytes pointed to by I<s> instead "
658 "of forward from the beginning."
662 #: build/C/man3/memchr.3:99
664 "The B<rawmemchr>() function is similar to B<memchr>(): it assumes (i.e., "
665 "the programmer knows for certain) that an instance of I<c> lies somewhere "
666 "in the memory area starting at the location pointed to by I<s>, and so "
667 "performs an optimized search for I<c> (i.e., no use of a count argument to "
668 "limit the range of the search). If an instance of I<c> is not found, the "
669 "results are unpredictable. The following call is a fast means of locating a "
670 "string's terminating null byte:"
674 #: build/C/man3/memchr.3:103
676 msgid "char *p = rawmemchr(s,\\ \\(aq\\e0\\(aq);\n"
680 #: build/C/man3/memchr.3:113
682 "The B<memchr>() and B<memrchr>() functions return a pointer to the "
683 "matching byte or NULL if the character does not occur in the given memory "
688 #: build/C/man3/memchr.3:118
690 "The B<rawmemchr>() function returns a pointer to the matching byte, if one "
691 "is found. If no matching byte is found, the result is unspecified."
695 #: build/C/man3/memchr.3:118 build/C/man3/mempcpy.3:57 build/C/man3/strchr.3:104 build/C/man3/strerror.3:212
701 #: build/C/man3/memchr.3:121
702 msgid "B<rawmemchr>() first appeared in glibc in version 2.1."
706 #: build/C/man3/memchr.3:124
707 msgid "B<memrchr>() first appeared in glibc in version 2.2."
711 #: build/C/man3/memchr.3:132
713 "The B<memchr>(), B<memrchr>(), and B<rawmemchr>() functions are "
718 #: build/C/man3/memchr.3:136
719 msgid "The B<memchr>() function conforms to SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
723 #: build/C/man3/memchr.3:140
724 msgid "The B<memrchr>() function is a GNU extension, available since glibc 2.1.91."
728 #: build/C/man3/memchr.3:144
729 msgid "The B<rawmemchr>() function is a GNU extension, available since glibc 2.1."
733 #: build/C/man3/memchr.3:155
735 "B<ffs>(3), B<index>(3), B<rindex>(3), B<strchr>(3), B<strpbrk>(3), "
736 "B<strrchr>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wmemchr>(3)"
740 #: build/C/man3/memcmp.3:30
746 #: build/C/man3/memcmp.3:30
752 #: build/C/man3/memcmp.3:33
753 msgid "memcmp - compare memory areas"
757 #: build/C/man3/memcmp.3:45
759 "The B<memcmp>() function compares the first I<n> bytes (each interpreted as "
760 "I<unsigned char>) of the memory areas I<s1> and I<s2>."
764 #: build/C/man3/memcmp.3:52
766 "The B<memcmp>() function returns an integer less than, equal to, or greater "
767 "than zero if the first I<n> bytes of I<s1> is found, respectively, to be "
768 "less than, to match, or be greater than the first I<n> bytes of I<s2>."
772 #: build/C/man3/memcmp.3:60
774 "For a nonzero return value, the sign is determined by the sign of the "
775 "difference between the first pair of bytes (interpreted as I<unsigned char>) "
776 "that differ in I<s1> and I<s2>."
780 #: build/C/man3/memcmp.3:64
781 msgid "If I<n> is zero, the return value is zero."
785 #: build/C/man3/memcmp.3:69
786 msgid "The B<memcmp>() function is thread-safe."
790 #: build/C/man3/memcmp.3:71 build/C/man3/memcpy.3:59 build/C/man3/memmove.3:69 build/C/man3/memset.3:61
791 msgid "SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
795 #: build/C/man3/memcmp.3:77
797 "Do not use B<memcmp>() to compare security critical data, such as "
798 "cryptographic secrets, because the required CPU time depends on the amount "
803 #: build/C/man3/memcmp.3:85
805 "B<bcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), "
806 "B<strncasecmp>(3), B<strncmp>(3), B<wmemcmp>(3)"
810 #: build/C/man3/memcpy.3:30
816 #: build/C/man3/memcpy.3:30 build/C/man3/memfrob.3:30 build/C/man3/memmove.3:30
822 #: build/C/man3/memcpy.3:33
823 msgid "memcpy - copy memory area"
827 #: build/C/man3/memcpy.3:48
829 "The B<memcpy>() function copies I<n> bytes from memory area I<src> to "
830 "memory area I<dest>. The memory areas must not overlap. Use B<memmove>(3) "
831 "if the memory areas do overlap."
835 #: build/C/man3/memcpy.3:52
836 msgid "The B<memcpy>() function returns a pointer to I<dest>."
840 #: build/C/man3/memcpy.3:57
841 msgid "The B<memcpy>() function is thread-safe."
845 #: build/C/man3/memcpy.3:67
847 "B<bcopy>(3), B<memccpy>(3), B<memmove>(3), B<mempcpy>(3), B<strcpy>(3), "
848 "B<strncpy>(3), B<wmemcpy>(3)"
852 #: build/C/man3/memfrob.3:30
858 #: build/C/man3/memfrob.3:33
859 msgid "memfrob - frobnicate (encrypt) a memory area"
863 #: build/C/man3/memfrob.3:37
866 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
867 "B<#include E<lt>string.hE<gt>>\n"
871 #: build/C/man3/memfrob.3:50
873 "The B<memfrob>() function encrypts the first I<n> bytes of the memory area "
874 "I<s> by exclusive-ORing each character with the number 42. The effect can "
875 "be reversed by using B<memfrob>() on the encrypted memory area."
879 #: build/C/man3/memfrob.3:53
881 "Note that this function is not a proper encryption routine as the XOR "
882 "constant is fixed, and is suitable only for hiding strings."
886 #: build/C/man3/memfrob.3:58
887 msgid "The B<memfrob>() function returns a pointer to the encrypted memory area."
891 #: build/C/man3/memfrob.3:63
892 msgid "The B<memfrob>() function is thread-safe."
896 #: build/C/man3/memfrob.3:68
897 msgid "The B<memfrob>() function is unique to the GNU C Library."
901 #: build/C/man3/memfrob.3:70
906 #: build/C/man3/memmem.3:30
912 #: build/C/man3/memmem.3:30 build/C/man3/strstr.3:33
918 #: build/C/man3/memmem.3:33
919 msgid "memmem - locate a substring"
923 #: build/C/man3/memmem.3:37 build/C/man3/strchr.3:46
926 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
927 "B<#include E<lt>string.hE<gt>>\n"
931 #: build/C/man3/memmem.3:40
934 "B<void *memmem(const void *>I<haystack>B<, size_t >I<haystacklen>B<,>\n"
935 "B< const void *>I<needle>B<, size_t >I<needlelen>B<);>\n"
939 #: build/C/man3/memmem.3:54
941 "The B<memmem>() function finds the start of the first occurrence of the "
942 "substring I<needle> of length I<needlelen> in the memory area I<haystack> of "
943 "length I<haystacklen>."
947 #: build/C/man3/memmem.3:59
949 "The B<memmem>() function returns a pointer to the beginning of the "
950 "substring, or NULL if the substring is not found."
954 #: build/C/man3/memmem.3:64
955 msgid "The B<memmem>() function is thread-safe."
959 #: build/C/man3/memmem.3:66 build/C/man3/mempcpy.3:69 build/C/man3/strverscmp.3:92
960 msgid "This function is a GNU extension."
964 #: build/C/man3/memmem.3:66 build/C/man3/stpcpy.3:85 build/C/man3/strcpy.3:215 build/C/man3/strsep.3:95 build/C/man3/strtok.3:185
969 #. This function was broken in Linux libraries up to and including libc 5.0.9;
974 #. arguments were interchanged,
975 #. and a pointer to the end of the first occurrence of
979 #. Both old and new libc's have the bug that if
987 #: build/C/man3/memmem.3:91
989 "In glibc 2.0, if I<needle> is empty, B<memmem>() returns a pointer to the "
990 "last byte of I<haystack>. This is fixed in glibc 2.1."
994 #: build/C/man3/memmem.3:93
999 #: build/C/man3/memmove.3:30
1005 #: build/C/man3/memmove.3:33
1006 msgid "memmove - copy memory area"
1010 #: build/C/man3/memmove.3:57
1012 "The B<memmove>() function copies I<n> bytes from memory area I<src> to "
1013 "memory area I<dest>. The memory areas may overlap: copying takes place as "
1014 "though the bytes in I<src> are first copied into a temporary array that does "
1015 "not overlap I<src> or I<dest>, and the bytes are then copied from the "
1016 "temporary array to I<dest>."
1020 #: build/C/man3/memmove.3:62
1021 msgid "The B<memmove>() function returns a pointer to I<dest>."
1025 #: build/C/man3/memmove.3:67
1026 msgid "The B<memmove>() function is thread-safe."
1030 #: build/C/man3/memmove.3:76
1032 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<strncpy>(3), "
1037 #: build/C/man3/mempcpy.3:10
1043 #: build/C/man3/mempcpy.3:10 build/C/man3/memset.3:30 build/C/man3/strerror.3:39
1049 #: build/C/man3/mempcpy.3:13
1050 msgid "mempcpy, wmempcpy - copy memory area"
1054 #: 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
1056 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1060 #: build/C/man3/mempcpy.3:20
1062 msgid "B<void *mempcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
1066 #: build/C/man3/mempcpy.3:24
1068 msgid "B<#include E<lt>wchar.hE<gt>>\n"
1072 #: build/C/man3/mempcpy.3:26
1075 "B<wchar_t *wmempcpy(wchar_t *>I<dest>B<, const wchar_t *>I<src>B<, size_t "
1080 #: build/C/man3/mempcpy.3:42
1082 "The B<mempcpy>() function is nearly identical to the B<memcpy>(3) "
1083 "function. It copies I<n> bytes from the object beginning at I<src> into the "
1084 "object pointed to by I<dest>. But instead of returning the value of I<dest> "
1085 "it returns a pointer to the byte following the last written byte."
1089 #: build/C/man3/mempcpy.3:45
1091 "This function is useful in situations where a number of objects shall be "
1092 "copied to consecutive memory positions."
1096 #: build/C/man3/mempcpy.3:53
1098 "The B<wmempcpy>() function is identical but takes I<wchar_t> type arguments "
1099 "and copies I<n> wide characters."
1103 #: build/C/man3/mempcpy.3:57
1104 msgid "I<dest> + I<n>."
1108 #: build/C/man3/mempcpy.3:60
1109 msgid "B<mempcpy>() first appeared in glibc in version 2.1."
1113 #: build/C/man3/mempcpy.3:67
1114 msgid "The B<mempcpy>() and B<wmempcpy>() functions are thread-safe."
1118 #: build/C/man3/mempcpy.3:69 build/C/man3/stpcpy.3:88 build/C/man3/strtok.3:201
1124 #: build/C/man3/mempcpy.3:79
1128 "combine(void *o1, size_t s1, void *o2, size_t s2)\n"
1130 " void *result = malloc(s1 + s2);\n"
1131 " if (result != NULL)\n"
1132 " mempcpy(mempcpy(result, o1, s1), o2, s2);\n"
1138 #: build/C/man3/mempcpy.3:85
1139 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<wmemcpy>(3)"
1143 #: build/C/man3/memset.3:30
1149 #: build/C/man3/memset.3:33
1150 msgid "memset - fill memory with a constant byte"
1154 #: build/C/man3/memset.3:49
1156 "The B<memset>() function fills the first I<n> bytes of the memory area "
1157 "pointed to by I<s> with the constant byte I<c>."
1161 #: build/C/man3/memset.3:54
1162 msgid "The B<memset>() function returns a pointer to the memory area I<s>."
1166 #: build/C/man3/memset.3:59
1167 msgid "The B<memset>() function is thread-safe."
1171 #: build/C/man3/memset.3:65
1172 msgid "B<bzero>(3), B<swab>(3), B<wmemset>(3)"
1176 #: build/C/man3/stpcpy.3:25
1182 #: build/C/man3/stpcpy.3:25 build/C/man3/stpncpy.3:14 build/C/man3/strcasecmp.3:30
1188 #: build/C/man3/stpcpy.3:28
1189 msgid "stpcpy - copy a string returning a pointer to its end"
1193 #: build/C/man3/stpcpy.3:33
1195 msgid "B<char *stpcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1199 #: build/C/man3/stpcpy.3:41
1200 msgid "B<stpcpy>():"
1204 #: 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
1206 msgid "Since glibc 2.10:"
1210 #: build/C/man3/stpcpy.3:47 build/C/man3/stpncpy.3:36 build/C/man3/strnlen.3:35 build/C/man3/strsignal.3:54
1211 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
1215 #: 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
1217 msgid "Before glibc 2.10:"
1221 #: build/C/man3/stpcpy.3:63
1223 "The B<stpcpy>() function copies the string pointed to by I<src> (including "
1224 "the terminating null byte (\\(aq\\e0\\(aq)) to the array pointed to by "
1225 "I<dest>. The strings may not overlap, and the destination string I<dest> "
1226 "must be large enough to receive the copy."
1230 #: build/C/man3/stpcpy.3:71
1232 "B<stpcpy>() returns a pointer to the B<end> of the string I<dest> (that is, "
1233 "the address of the terminating null byte) rather than the beginning."
1237 #: build/C/man3/stpcpy.3:76
1238 msgid "The B<stpcpy>() function is thread-safe."
1242 #: build/C/man3/stpcpy.3:85
1244 "This function was added to POSIX.1-2008. Before that, it was not part of "
1245 "the C or POSIX.1 standards, nor customary on UNIX systems. It first "
1246 "appeared at least as early as 1986, in the Lattice C AmigaDOS compiler, then "
1247 "in the GNU fileutils and GNU textutils in 1989, and in the GNU C library by "
1248 "1992. It is also present on the BSDs."
1252 #: build/C/man3/stpcpy.3:88
1253 msgid "This function may overrun the buffer I<dest>."
1257 #: build/C/man3/stpcpy.3:98
1259 "For example, this program uses B<stpcpy>() to concatenate B<foo> and B<bar> "
1260 "to produce B<foobar>, which it then prints."
1264 #: build/C/man3/stpcpy.3:103
1267 "#define _GNU_SOURCE\n"
1268 "#include E<lt>string.hE<gt>\n"
1269 "#include E<lt>stdio.hE<gt>\n"
1273 #: build/C/man3/stpcpy.3:109
1279 " char buffer[20];\n"
1280 " char *to = buffer;\n"
1284 #: build/C/man3/stpcpy.3:114
1287 " to = stpcpy(to, \"foo\");\n"
1288 " to = stpcpy(to, \"bar\");\n"
1289 " printf(\"%s\\en\", buffer);\n"
1294 #: build/C/man3/stpcpy.3:124
1296 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpncpy>(3), "
1297 "B<strcpy>(3), B<string>(3), B<wcpcpy>(3)"
1301 #: build/C/man3/stpncpy.3:14
1307 #: build/C/man3/stpncpy.3:17
1308 msgid "stpncpy - copy a fixed-size string, returning a pointer to its end"
1312 #: build/C/man3/stpncpy.3:22
1314 msgid "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1318 #: build/C/man3/stpncpy.3:30
1319 msgid "B<stpncpy>():"
1323 #: build/C/man3/stpncpy.3:74
1325 "The B<stpncpy>() function copies at most I<n> characters from the string "
1326 "pointed to by I<src>, including the terminating null byte (\\(aq\\e0\\(aq), "
1327 "to the array pointed to by I<dest>. Exactly I<n> characters are written at "
1328 "I<dest>. If the length I<strlen(src)> is smaller than I<n>, the remaining "
1329 "characters in the array pointed to by I<dest> are filled with null bytes "
1330 "(\\(aq\\e0\\(aq), If the length I<strlen(src)> is greater than or equal to "
1331 "I<n>, the string pointed to by I<dest> will not be null-terminated."
1335 #: build/C/man3/stpncpy.3:76
1336 msgid "The strings may not overlap."
1340 #: build/C/man3/stpncpy.3:82
1342 "The programmer must ensure that there is room for at least I<n> characters "
1347 #: build/C/man3/stpncpy.3:91
1349 "B<stpncpy>() returns a pointer to the terminating null byte in I<dest>, or, "
1350 "if I<dest> is not null-terminated, I<dest>+I<n>."
1354 #: build/C/man3/stpncpy.3:96
1355 msgid "The B<stpncpy>() function is thread-safe."
1359 #: build/C/man3/stpncpy.3:100
1361 "This function was added to POSIX.1-2008. Before that, it was a GNU "
1362 "extension. It first appeared in version 1.07 of the GNU C library in 1993."
1366 #: build/C/man3/stpncpy.3:103
1367 msgid "B<strncpy>(3), B<wcpncpy>(3)"
1371 #: build/C/man3/strcasecmp.3:30
1377 #: build/C/man3/strcasecmp.3:33
1378 msgid "strcasecmp, strncasecmp - compare two strings ignoring case"
1382 #: build/C/man3/strcasecmp.3:38
1384 msgid "B<int strcasecmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1388 #: build/C/man3/strcasecmp.3:40
1391 "B<int strncasecmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t "
1396 #: build/C/man3/strcasecmp.3:55
1398 "The B<strcasecmp>() function compares the two strings I<s1> and I<s2>, "
1399 "ignoring the case of the characters. It returns an integer less than, equal "
1400 "to, or greater than zero if I<s1> is found, respectively, to be less than, "
1401 "to match, or be greater than I<s2>."
1405 #: build/C/man3/strcasecmp.3:63
1407 "The B<strncasecmp>() function is similar, except it compares the only first "
1408 "I<n> bytes of I<s1>."
1412 #: build/C/man3/strcasecmp.3:76
1414 "The B<strcasecmp>() and B<strncasecmp>() functions return an integer less "
1415 "than, equal to, or greater than zero if I<s1> (or the first I<n> bytes "
1416 "thereof) is found, respectively, to be less than, to match, or be greater "
1421 #: build/C/man3/strcasecmp.3:78
1422 msgid "4.4BSD, POSIX.1-2001."
1426 #: build/C/man3/strcasecmp.3:92
1428 "The B<strcasecmp>() and B<strncasecmp>() functions first appeared in "
1429 "4.4BSD, where they were declared in I<E<lt>string.hE<gt>>. Thus, for "
1430 "reasons of historical compatibility, the glibc I<E<lt>string.hE<gt>> header "
1431 "file also declares these functions, if the B<_DEFAULT_SOURCE> (or, in glibc "
1432 "2.19 and earlier, B<_BSD_SOURCE>) feature test macro is defined."
1436 #: build/C/man3/strcasecmp.3:101
1438 "B<bcmp>(3), B<memcmp>(3), B<strcmp>(3), B<strcoll>(3), B<string>(3), "
1439 "B<strncmp>(3), B<wcscasecmp>(3), B<wcsncasecmp>(3)"
1443 #: build/C/man3/strcat.3:32
1449 #: build/C/man3/strcat.3:32 build/C/man3/strchr.3:33 build/C/man3/strcmp.3:32
1455 #: build/C/man3/strcat.3:35
1456 msgid "strcat, strncat - concatenate two strings"
1460 #: build/C/man3/strcat.3:40
1462 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
1466 #: build/C/man3/strcat.3:42
1468 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1472 #: build/C/man3/strcat.3:62
1474 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
1475 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
1476 "I<dest>, and then adds a terminating null byte. The strings may not "
1477 "overlap, and the I<dest> string must have enough space for the result. If "
1478 "I<dest> is not large enough, program behavior is unpredictable; I<buffer "
1479 "overruns are a favorite avenue for attacking secure programs>."
1483 #: build/C/man3/strcat.3:66
1484 msgid "The B<strncat>() function is similar, except that"
1488 #: build/C/man3/strcat.3:66 build/C/man3/strcat.3:72 build/C/man3/strsep.3:98 build/C/man3/strsep.3:100 build/C/man3/strsep.3:102 build/C/man3/strtok.3:188 build/C/man3/strtok.3:190 build/C/man3/strtok.3:192 build/C/man3/strtok.3:194
1494 #: build/C/man3/strcat.3:72
1495 msgid "it will use at most I<n> bytes from I<src>; and"
1499 #: build/C/man3/strcat.3:77
1501 "I<src> does not need to be null-terminated if it contains I<n> or more "
1506 #: build/C/man3/strcat.3:83
1508 "As with B<strcat>(), the resulting string in I<dest> is always "
1513 #: build/C/man3/strcat.3:102
1515 "If I<src> contains I<n> or more bytes, B<strncat>() writes I<n+1> bytes to "
1516 "I<dest> (I<n> from I<src> plus the terminating null byte). Therefore, the "
1517 "size of I<dest> must be at least I<strlen(dest)+n+1>."
1521 #: build/C/man3/strcat.3:106
1522 msgid "A simple implementation of B<strncat>() might be:"
1526 #: build/C/man3/strcat.3:114
1530 "strncat(char *dest, const char *src, size_t n)\n"
1532 " size_t dest_len = strlen(dest);\n"
1537 #: build/C/man3/strcat.3:118
1540 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
1541 " dest[dest_len + i] = src[i];\n"
1542 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
1546 #: build/C/man3/strcat.3:121 build/C/man3/strcpy.3:106
1554 #: build/C/man3/strcat.3:130
1556 "The B<strcat>() and B<strncat>() functions return a pointer to the "
1557 "resulting string I<dest>."
1561 #: build/C/man3/strcat.3:137
1562 msgid "The B<strcat>() and B<strncat>() functions are thread-safe."
1566 #: build/C/man3/strcat.3:139 build/C/man3/strcmp.3:88 build/C/man3/strcoll.3:71 build/C/man3/strcpy.3:125 build/C/man3/strlen.3:57 build/C/man3/strpbrk.3:63 build/C/man3/strspn.3:83 build/C/man3/strxfrm.3:78
1567 msgid "SVr4, 4.3BSD, C89, C99."
1571 #: build/C/man3/strcat.3:141 build/C/man3/strcpy.3:178
1572 msgid "Some systems (the BSDs, Solaris, and others) provide the following function:"
1576 #: build/C/man3/strcat.3:143
1578 msgid " size_t strlcat(char *dest, const char *src, size_t size);\n"
1581 #. https://lwn.net/Articles/506530/
1583 #: build/C/man3/strcat.3:176
1585 "This function appends the null-terminated string I<src> to the string "
1586 "I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a "
1587 "terminating null byte to the result, I<unless> I<size> is less than "
1588 "I<strlen(dest)>. This function fixes the buffer overrun problem of "
1589 "B<strcat>(), but the caller must still handle the possibility of data loss "
1590 "if I<size> is too small. The function returns the length of the string "
1591 "B<strlcat>() tried to create; if the return value is greater than or equal "
1592 "to I<size>, data loss occurred. If data loss matters, the caller I<must> "
1593 "either check the arguments before the call, or test the function return "
1594 "value. B<strlcat>() is not present in glibc and is not standardized by "
1595 "POSIX, but is available on Linux via the I<libbsd> library."
1599 #: build/C/man3/strcat.3:185
1601 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
1602 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
1606 #: build/C/man3/strchr.3:33
1612 #: build/C/man3/strchr.3:36
1613 msgid "strchr, strrchr, strchrnul - locate character in string"
1617 #: build/C/man3/strchr.3:41
1619 msgid "B<char *strchr(const char *>I<s>B<, int >I<c>B<);>\n"
1623 #: build/C/man3/strchr.3:43
1625 msgid "B<char *strrchr(const char *>I<s>B<, int >I<c>B<);>\n"
1629 #: build/C/man3/strchr.3:48
1631 msgid "B<char *strchrnul(const char *>I<s>B<, int >I<c>B<);>\n"
1635 #: build/C/man3/strchr.3:57
1637 "The B<strchr>() function returns a pointer to the first occurrence of the "
1638 "character I<c> in the string I<s>."
1642 #: build/C/man3/strchr.3:65
1644 "The B<strrchr>() function returns a pointer to the last occurrence of the "
1645 "character I<c> in the string I<s>."
1649 #: build/C/man3/strchr.3:78
1651 "The B<strchrnul>() function is like B<strchr>() except that if I<c> is not "
1652 "found in I<s>, then it returns a pointer to the null byte at the end of "
1653 "I<s>, rather than NULL."
1657 #: build/C/man3/strchr.3:81
1659 "Here \"character\" means \"byte\"; these functions do not work with wide or "
1660 "multibyte characters."
1664 #: build/C/man3/strchr.3:93
1666 "The B<strchr>() and B<strrchr>() functions return a pointer to the matched "
1667 "character or NULL if the character is not found. The terminating null byte "
1668 "is considered part of the string, so that if I<c> is specified as "
1669 "\\(aq\\e0\\(aq, these functions return a pointer to the terminator."
1673 #: build/C/man3/strchr.3:104
1675 "The B<strchrnul>() function returns a pointer to the matched character, or "
1676 "a pointer to the null byte at the end of I<s> (i.e., I<s+strlen(s)>) if the "
1677 "character is not found."
1681 #: build/C/man3/strchr.3:107
1682 msgid "B<strchrnul>() first appeared in glibc in version 2.1.1."
1686 #: build/C/man3/strchr.3:115
1688 "The B<strchr>(), B<strrchr>(), and B<strchrnul>() functions are "
1693 #: build/C/man3/strchr.3:122
1695 "B<strchr>() and B<strrchr>() are in SVr4, 4.3BSD, C89, C99. "
1696 "B<strchrnul>() is a GNU extension."
1700 #: build/C/man3/strchr.3:135
1702 "B<index>(3), B<memchr>(3), B<rindex>(3), B<string>(3), B<strlen>(3), "
1703 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), "
1704 "B<wcschr>(3), B<wcsrchr>(3)"
1708 #: build/C/man3/strcmp.3:32
1714 #: build/C/man3/strcmp.3:35
1715 msgid "strcmp, strncmp - compare two strings"
1719 #: build/C/man3/strcmp.3:40
1721 msgid "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1725 #: build/C/man3/strcmp.3:42
1728 "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t "
1733 #: build/C/man3/strcmp.3:56
1735 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. It "
1736 "returns an integer less than, equal to, or greater than zero if I<s1> is "
1737 "found, respectively, to be less than, to match, or be greater than I<s2>."
1741 #: build/C/man3/strcmp.3:66
1743 "The B<strncmp>() function is similar, except it compares the only first (at "
1744 "most) I<n> bytes of I<s1> and I<s2>."
1748 #: build/C/man3/strcmp.3:79
1750 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
1751 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
1752 "found, respectively, to be less than, to match, or be greater than I<s2>."
1756 #: build/C/man3/strcmp.3:86
1757 msgid "The B<strcmp>() and B<strncmp>() functions are thread-safe."
1761 #: build/C/man3/strcmp.3:98
1763 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
1764 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
1768 #: build/C/man3/strcoll.3:30
1774 #: build/C/man3/strcoll.3:30 build/C/man3/strfry.3:30
1780 #: build/C/man3/strcoll.3:33
1781 msgid "strcoll - compare two strings using the current locale"
1785 #: build/C/man3/strcoll.3:38
1787 msgid "B<int strcoll(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1791 #: build/C/man3/strcoll.3:58
1793 "The B<strcoll>() function compares the two strings I<s1> and I<s2>. It "
1794 "returns an integer less than, equal to, or greater than zero if I<s1> is "
1795 "found, respectively, to be less than, to match, or be greater than I<s2>. "
1796 "The comparison is based on strings interpreted as appropriate for the "
1797 "program's current locale for category B<LC_COLLATE>. (See B<setlocale>(3).)"
1801 #: build/C/man3/strcoll.3:69
1803 "The B<strcoll>() function returns an integer less than, equal to, or "
1804 "greater than zero if I<s1> is found, respectively, to be less than, to "
1805 "match, or be greater than I<s2>, when both are interpreted as appropriate "
1806 "for the current locale."
1810 #: build/C/man3/strcoll.3:80
1811 msgid "In the I<POSIX> or I<C> locales B<strcoll>() is equivalent to B<strcmp>(3)."
1815 #: build/C/man3/strcoll.3:88
1817 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
1818 "B<string>(3), B<strxfrm>(3)"
1822 #: build/C/man3/strcpy.3:35
1828 #: build/C/man3/strcpy.3:35
1834 #: build/C/man3/strcpy.3:38
1835 msgid "strcpy, strncpy - copy a string"
1839 #: build/C/man3/strcpy.3:43
1841 msgid "B<char *strcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1845 #: build/C/man3/strcpy.3:45
1847 msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1851 #: build/C/man3/strcpy.3:59
1853 "The B<strcpy>() function copies the string pointed to by I<src>, including "
1854 "the terminating null byte (\\(aq\\e0\\(aq), to the buffer pointed to by "
1855 "I<dest>. The strings may not overlap, and the destination string I<dest> "
1856 "must be large enough to receive the copy. I<Beware of buffer overruns!> "
1861 #: build/C/man3/strcpy.3:76
1863 "The B<strncpy>() function is similar, except that at most I<n> bytes of "
1864 "I<src> are copied. B<Warning>: If there is no null byte among the first "
1865 "I<n> bytes of I<src>, the string placed in I<dest> will not be "
1870 #: build/C/man3/strcpy.3:87
1872 "If the length of I<src> is less than I<n>, B<strncpy>() writes additional "
1873 "null bytes to I<dest> to ensure that a total of I<n> bytes are written."
1877 #: build/C/man3/strcpy.3:91
1878 msgid "A simple implementation of B<strncpy>() might be:"
1882 #: build/C/man3/strcpy.3:98
1886 "strncpy(char *dest, const char *src, size_t n)\n"
1892 #: build/C/man3/strcpy.3:103
1895 " for (i = 0; i E<lt> n && src[i] != \\(aq\\e0\\(aq; i++)\n"
1896 " dest[i] = src[i];\n"
1897 " for ( ; i E<lt> n; i++)\n"
1898 " dest[i] = \\(aq\\e0\\(aq;\n"
1902 #: build/C/man3/strcpy.3:116
1904 "The B<strcpy>() and B<strncpy>() functions return a pointer to the "
1905 "destination string I<dest>."
1909 #: build/C/man3/strcpy.3:123
1910 msgid "The B<strcpy>() and B<strncpy>() functions are thread-safe."
1914 #: build/C/man3/strcpy.3:138
1916 "Some programmers consider B<strncpy>() to be inefficient and error prone. "
1917 "If the programmer knows (i.e., includes code to test!) that the size of "
1918 "I<dest> is greater than the length of I<src>, then B<strcpy>() can be used."
1922 #: build/C/man3/strcpy.3:147
1924 "One valid (and intended) use of B<strncpy>() is to copy a C string to a "
1925 "fixed-length buffer while ensuring both that the buffer is not overflowed "
1926 "and that unused bytes in the target buffer are zeroed out (perhaps to "
1927 "prevent information leaks if the buffer is to be written to media or "
1928 "transmitted to another process via an interprocess communication technique)."
1932 #: build/C/man3/strcpy.3:160
1934 "If there is no terminating null byte in the first I<n> bytes of I<src>, "
1935 "B<strncpy>() produces an unterminated string in I<dest>. If I<buf> has "
1936 "length I<buflen>, you can force termination using something like the "
1941 #: build/C/man3/strcpy.3:166
1944 "strncpy(buf, str, buflen - 1);\n"
1945 "if (buflen E<gt> 0)\n"
1946 " buf[buflen - 1]= \\(aq\\e0\\(aq;\n"
1950 #: build/C/man3/strcpy.3:176
1952 "(Of course, the above technique ignores the fact that, if I<src> contains "
1953 "more than I<buflen\\ -\\ 1> bytes, information is lost in the copying to "
1958 #: build/C/man3/strcpy.3:176
1964 #: build/C/man3/strcpy.3:180
1966 msgid " size_t strlcpy(char *dest, const char *src, size_t size);\n"
1969 #. http://static.usenix.org/event/usenix99/full_papers/millert/millert_html/index.html
1970 #. "strlcpy and strlcat - consistent, safe, string copy and concatenation"
1971 #. 1999 USENIX Annual Technical Conference
1972 #. https://lwn.net/Articles/506530/
1974 #: build/C/man3/strcpy.3:215
1976 "This function is similar to B<strncpy>(), but it copies at most I<size-1> "
1977 "bytes to I<dest>, always adds a terminating null byte, and does not pad the "
1978 "target with (further) null bytes. This function fixes some of the problems "
1979 "of B<strcpy>() and B<strncpy>(), but the caller must still handle the "
1980 "possibility of data loss if I<size> is too small. The return value of the "
1981 "function is the length of I<src>, which allows truncation to be easily "
1982 "detected: if the return value is greater than or equal to I<size>, "
1983 "truncation occurred. If loss of data matters, the caller I<must> either "
1984 "check the arguments before the call, or test the function return value. "
1985 "B<strlcpy>() is not present in glibc and is not standardized by POSIX, but "
1986 "is available on Linux via the I<libbsd> library."
1990 #: build/C/man3/strcpy.3:226
1992 "If the destination string of a B<strcpy>() is not large enough, then "
1993 "anything might happen. Overflowing fixed-length string buffers is a "
1994 "favorite cracker technique for taking complete control of the machine. Any "
1995 "time a program reads or copies data into a buffer, the program first needs "
1996 "to check that there's enough space. This may be unnecessary if you can show "
1997 "that overflow is impossible, but be careful: programs can get changed over "
1998 "time, in ways that may make the impossible possible."
2002 #: build/C/man3/strcpy.3:237
2004 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpcpy>(3), "
2005 "B<stpncpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<wcsncpy>(3)"
2009 #: build/C/man3/strdup.3:31
2015 #: build/C/man3/strdup.3:31
2021 #: build/C/man3/strdup.3:34
2022 msgid "strdup, strndup, strdupa, strndupa - duplicate a string"
2026 #: build/C/man3/strdup.3:39
2028 msgid "B<char *strdup(const char *>I<s>B<);>\n"
2032 #: build/C/man3/strdup.3:41
2034 msgid "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
2038 #: build/C/man3/strdup.3:43
2040 msgid "B<char *strdupa(const char *>I<s>B<);>\n"
2044 #: build/C/man3/strdup.3:45
2046 msgid "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
2050 #: build/C/man3/strdup.3:55
2051 msgid "B<strdup>():"
2055 #: build/C/man3/strdup.3:58
2057 "_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
2058 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
2062 #: build/C/man3/strdup.3:60
2063 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
2067 #: build/C/man3/strdup.3:63
2068 msgid "B<strndup>():"
2072 #: build/C/man3/strdup.3:67
2073 msgid "_POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700"
2077 #: build/C/man3/strdup.3:75
2078 msgid "B<strdupa>(), B<strndupa>(): _GNU_SOURCE"
2082 #: build/C/man3/strdup.3:88
2084 "The B<strdup>() function returns a pointer to a new string which is a "
2085 "duplicate of the string I<s>. Memory for the new string is obtained with "
2086 "B<malloc>(3), and can be freed with B<free>(3)."
2090 #: build/C/man3/strdup.3:101
2092 "The B<strndup>() function is similar, but copies at most I<n> bytes. If "
2093 "I<s> is longer than I<n>, only I<n> bytes are copied, and a terminating null "
2094 "byte (\\(aq\\e0\\(aq) is added."
2098 #: build/C/man3/strdup.3:111
2100 "B<strdupa>() and B<strndupa>() are similar, but use B<alloca>(3) to "
2101 "allocate the buffer. They are available only when using the GNU GCC suite, "
2102 "and suffer from the same limitations described in B<alloca>(3)."
2106 #: build/C/man3/strdup.3:119
2108 "On success, the B<strdup>() function returns a pointer to the duplicated "
2109 "string. It returns NULL if insufficient memory was available, with I<errno> "
2110 "set to indicate the cause of the error."
2114 #: build/C/man3/strdup.3:119 build/C/man3/strerror.3:193
2120 #: build/C/man3/strdup.3:120
2126 #: build/C/man3/strdup.3:123
2127 msgid "Insufficient memory available to allocate duplicate string."
2130 #. 4.3BSD-Reno, not (first) 4.3BSD.
2132 #: build/C/man3/strdup.3:133
2134 "B<strdup>() conforms to SVr4, 4.3BSD, POSIX.1-2001. B<strndup>() conforms "
2135 "to POSIX.1-2008. B<strdupa>() and B<strndupa>() are GNU extensions."
2139 #: build/C/man3/strdup.3:141
2141 "B<alloca>(3), B<calloc>(3), B<free>(3), B<malloc>(3), B<realloc>(3), "
2142 "B<string>(3), B<wcsdup>(3)"
2146 #: build/C/man3/strerror.3:39
2152 #: build/C/man3/strerror.3:42
2153 msgid "strerror, strerror_r, strerror_l - return string describing error number"
2157 #: build/C/man3/strerror.3:47
2159 msgid "B<char *strerror(int >I<errnum>B<);>\n"
2163 #: build/C/man3/strerror.3:50
2166 "B<int strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
2167 " /* XSI-compliant */\n"
2171 #: build/C/man3/strerror.3:53
2174 "B<char *strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t "
2176 " /* GNU-specific */\n"
2180 #: build/C/man3/strerror.3:55
2182 msgid "B<char *strerror_l(int >I<errnum>B<, locale_t >I<locale>B<);>\n"
2186 #: build/C/man3/strerror.3:64
2187 msgid "B<strerror_r>():"
2191 #: build/C/man3/strerror.3:66
2192 msgid "The XSI-compliant version is provided if:"
2196 #: build/C/man3/strerror.3:68
2198 "(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600) && !\\ "
2203 #: build/C/man3/strerror.3:70
2204 msgid "Otherwise, the GNU-specific version is provided."
2208 #: build/C/man3/strerror.3:95
2210 "The B<strerror>() function returns a pointer to a string that describes the "
2211 "error code passed in the argument I<errnum>, possibly using the "
2212 "B<LC_MESSAGES> part of the current locale to select the appropriate "
2213 "language. (For example, if I<errnum> is B<EINVAL>, the returned description "
2214 "will be \"Invalid argument\".) This string must not be modified by the "
2215 "application, but may be modified by a subsequent call to B<strerror>() or "
2216 "B<strerror_l>(). No other library function, including B<perror>(3), will "
2217 "modify this string."
2221 #: build/C/man3/strerror.3:95
2223 msgid "strerror_r()"
2227 #: build/C/man3/strerror.3:116
2229 "The B<strerror_r>() function is similar to B<strerror>(), but is thread "
2230 "safe. This function is available in two versions: an XSI-compliant version "
2231 "specified in POSIX.1-2001 (available since glibc 2.3.4, but not "
2232 "POSIX-compliant until glibc 2.13), and a GNU-specific version (available "
2233 "since glibc 2.0). The XSI-compliant version is provided with the feature "
2234 "test macros settings shown in the SYNOPSIS; otherwise the GNU-specific "
2235 "version is provided. If no feature test macros are explicitly defined, then "
2236 "(since glibc 2.4) B<_POSIX_SOURCE> is defined by default with the value "
2237 "200112L, so that the XSI-compliant version of B<strerror_r>() is provided "
2242 #: build/C/man3/strerror.3:124
2244 "The XSI-compliant B<strerror_r>() is preferred for portable applications. "
2245 "It returns the error string in the user-supplied buffer I<buf> of length "
2250 #: build/C/man3/strerror.3:145
2252 "The GNU-specific B<strerror_r>() returns a pointer to a string containing "
2253 "the error message. This may be either a pointer to a string that the "
2254 "function stores in I<buf>, or a pointer to some (immutable) static string "
2255 "(in which case I<buf> is unused). If the function stores a string in "
2256 "I<buf>, then at most I<buflen> bytes are stored (the string may be truncated "
2257 "if I<buflen> is too small and I<errnum> is unknown). The string always "
2258 "includes a terminating null byte (\\(aq\\e0\\(aq)."
2262 #: build/C/man3/strerror.3:145
2264 msgid "strerror_l()"
2268 #: build/C/man3/strerror.3:160
2270 "B<strerror_l>() is like B<strerror>(), but maps I<errnum> to a "
2271 "locale-dependent error message in the locale specified by I<locale>. The "
2272 "behavior of B<strerror_l>() is undefined if I<locale> is the special locale "
2273 "object B<LC_GLOBAL_LOCALE> or is not a valid locale object handle."
2277 #: build/C/man3/strerror.3:169
2279 "The B<strerror>(), B<strerror_l>(), and the GNU-specific B<strerror_r>() "
2280 "functions return the appropriate error description string, or an \"Unknown "
2281 "error nnn\" message if the error number is unknown."
2285 #: build/C/man3/strerror.3:178
2287 "The XSI-compliant B<strerror_r>() function returns 0 on success. On error, "
2288 "a (positive) error number is returned (since glibc 2.13), or -1 is returned "
2289 "and I<errno> is set to indicate the error (glibc versions before 2.13)."
2293 #: build/C/man3/strerror.3:193
2295 "POSIX.1-2001 and POSIX.1-2008 require that a successful call to "
2296 "B<strerror>() or B<strerror_l>() shall leave I<errno> unchanged, and note "
2297 "that, since no function return value is reserved to indicate an error, an "
2298 "application that wishes to check for errors should initialize I<errno> to "
2299 "zero before the call, and then check I<errno> after the call."
2303 #: build/C/man3/strerror.3:194
2309 #: build/C/man3/strerror.3:199
2310 msgid "The value of I<errnum> is not a valid error number."
2314 #: build/C/man3/strerror.3:199
2320 #: build/C/man3/strerror.3:202
2321 msgid "Insufficient storage was supplied to contain the error description string."
2325 #: build/C/man3/strerror.3:207
2326 msgid "The B<strerror>() function is not thread-safe."
2329 #. FIXME . Need a thread-safety statement about strerror_l()
2331 #: build/C/man3/strerror.3:212
2332 msgid "The B<strerror_r>() function is thread-safe."
2336 #: build/C/man3/strerror.3:216
2337 msgid "The B<strerror_l>() function first appeared in glibc 2.6."
2341 #: build/C/man3/strerror.3:221
2343 "B<strerror>() is specified by POSIX.1-2001, POSIX.1-2008, C89, and C99. "
2344 "B<strerror_r>() is specified by POSIX.1-2001 and POSIX.1-2008."
2348 #: build/C/man3/strerror.3:224
2349 msgid "B<strerror_l>() is specified in POSIX.1-2008."
2353 #: build/C/man3/strerror.3:228
2354 msgid "The GNU-specific B<strerror_r>() function is a nonstandard extension."
2357 #. e.g., Solaris 8, HP-UX 11
2358 #. e.g., FreeBSD 5.4, Tru64 5.1B
2360 #: build/C/man3/strerror.3:248
2362 "POSIX.1-2001 permits B<strerror>() to set I<errno> if the call encounters "
2363 "an error, but does not specify what value should be returned as the function "
2364 "result in the event of an error. On some systems, B<strerror>() returns "
2365 "NULL if the error number is unknown. On other systems, B<strerror>() "
2366 "returns a string something like \"Error nnn occurred\" and sets I<errno> to "
2367 "B<EINVAL> if the error number is unknown. C99 and POSIX.1-2008 require the "
2368 "return value to be non-NULL."
2372 #: build/C/man3/strerror.3:255
2374 "B<err>(3), B<errno>(3), B<error>(3), B<perror>(3), B<strsignal>(3), "
2379 #: build/C/man3/strfry.3:30
2385 #: build/C/man3/strfry.3:33
2386 msgid "strfry - randomize a string"
2390 #: build/C/man3/strfry.3:40
2392 msgid "B<char *strfry(char *>I<string>B<);>\n"
2396 #: build/C/man3/strfry.3:52
2398 "The B<strfry>() function randomizes the contents of I<string> by using "
2399 "B<rand>(3) to randomly swap characters in the string. The result is an "
2400 "anagram of I<string>."
2404 #: build/C/man3/strfry.3:57
2405 msgid "The B<strfry>() functions returns a pointer to the randomized string."
2409 #: build/C/man3/strfry.3:62
2410 msgid "The B<strfry>() function is unique to the GNU C Library."
2414 #: build/C/man3/strfry.3:65
2415 msgid "B<memfrob>(3), B<string>(3)"
2419 #: build/C/man3/string.3:30
2425 #: build/C/man3/string.3:30
2431 #: build/C/man3/string.3:36
2433 "stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, "
2434 "strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, "
2435 "strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex - string "
2440 #: build/C/man3/string.3:38
2441 msgid "B<#include E<lt>strings.hE<gt>>"
2445 #: build/C/man3/string.3:38
2447 msgid "B<int strcasecmp(const char *>I<s1>B<, const char *>I<s2>B<);>"
2451 #: build/C/man3/string.3:45
2452 msgid "Compare the strings I<s1> and I<s2> ignoring case."
2456 #: build/C/man3/string.3:45
2459 "B<int strncasecmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t "
2464 #: build/C/man3/string.3:54
2466 "Compare the first I<n> characters of the strings I<s1> and I<s2> ignoring "
2471 #: build/C/man3/string.3:54
2473 msgid "B<char *index(const char *>I<s>B<, int >I<c>B<);>"
2477 #: build/C/man3/string.3:60 build/C/man3/string.3:90
2479 "Return a pointer to the first occurrence of the character I<c> in the string "
2484 #: build/C/man3/string.3:60
2486 msgid "B<char *rindex(const char *>I<s>B<, int >I<c>B<);>"
2490 #: build/C/man3/string.3:66 build/C/man3/string.3:171
2492 "Return a pointer to the last occurrence of the character I<c> in the string "
2497 #: build/C/man3/string.3:66
2499 msgid "B<#include E<lt>string.hE<gt>>"
2503 #: build/C/man3/string.3:68
2505 msgid "B<char *stpcpy(char *>I<dest>B<, const char *>I<src>B<);>"
2509 #: build/C/man3/string.3:76
2511 "Copy a string from I<src> to I<dest>, returning a pointer to the end of the "
2512 "resulting string at I<dest>."
2516 #: build/C/man3/string.3:76
2518 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>"
2522 #: build/C/man3/string.3:84
2523 msgid "Append the string I<src> to the string I<dest>, returning a pointer I<dest>."
2527 #: build/C/man3/string.3:84
2529 msgid "B<char *strchr(const char *>I<s>B<, int >I<c>B<);>"
2533 #: build/C/man3/string.3:90
2535 msgid "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>"
2539 #: build/C/man3/string.3:96
2540 msgid "Compare the strings I<s1> with I<s2>."
2544 #: build/C/man3/string.3:96
2546 msgid "B<int strcoll(const char *>I<s1>B<, const char *>I<s2>B<);>"
2550 #: build/C/man3/string.3:103
2551 msgid "Compare the strings I<s1> with I<s2> using the current locale."
2555 #: build/C/man3/string.3:103
2557 msgid "B<char *strcpy(char *>I<dest>B<, const char *>I<src>B<);>"
2561 #: build/C/man3/string.3:111
2563 "Copy the string I<src> to I<dest>, returning a pointer to the start of "
2568 #: build/C/man3/string.3:111
2570 msgid "B<size_t strcspn(const char *>I<s>B<, const char *>I<reject>B<);>"
2574 #: build/C/man3/string.3:117
2576 "Calculate the length of the initial segment of the string I<s> which does "
2577 "not contain any of bytes in the string I<reject>,"
2581 #: build/C/man3/string.3:117
2583 msgid "B<char *strdup(const char *>I<s>B<);>"
2587 #: build/C/man3/string.3:123
2589 "Return a duplicate of the string I<s> in memory allocated using "
2594 #: build/C/man3/string.3:123
2596 msgid "B<char *strfry(char *>I<string>B<);>"
2600 #: build/C/man3/string.3:127
2601 msgid "Randomly swap the characters in I<string>."
2605 #: build/C/man3/string.3:127
2607 msgid "B<size_t strlen(const char *>I<s>B<);>"
2611 #: build/C/man3/string.3:131
2612 msgid "Return the length of the string I<s>."
2616 #: build/C/man3/string.3:131
2618 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>"
2622 #: build/C/man3/string.3:141
2624 "Append at most I<n> characters from the string I<src> to the string I<dest>, "
2625 "returning a pointer to I<dest>."
2629 #: build/C/man3/string.3:141
2631 msgid "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>"
2635 #: build/C/man3/string.3:149
2636 msgid "Compare at most I<n> bytes of the strings I<s1> and I<s2>."
2640 #: build/C/man3/string.3:149
2642 msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>"
2646 #: build/C/man3/string.3:159
2648 "Copy at most I<n> bytes from string I<src> to I<dest>, returning a pointer "
2649 "to the start of I<dest>."
2653 #: build/C/man3/string.3:159
2655 msgid "B<char *strpbrk(const char *>I<s>B<, const char *>I<accept>B<);>"
2659 #: build/C/man3/string.3:165
2661 "Return a pointer to the first occurrence in the string I<s> of one of the "
2662 "bytes in the string I<accept>."
2666 #: build/C/man3/string.3:165
2668 msgid "B<char *strrchr(const char *>I<s>B<, int >I<c>B<);>"
2672 #: build/C/man3/string.3:171
2674 msgid "B<char *strsep(char **>I<stringp>B<, const char *>I<delim>B<);>"
2678 #: build/C/man3/string.3:177
2680 "Extract the initial token in I<stringp> that is delimited by one of the "
2681 "bytes in I<delim>."
2685 #: build/C/man3/string.3:177
2687 msgid "B<size_t strspn(const char *>I<s>B<, const char *>I<accept>B<);>"
2691 #: build/C/man3/string.3:183
2693 "Calculate the length of the starting segment in the string I<s> that "
2694 "consists entirely of bytes in I<accept>."
2698 #: build/C/man3/string.3:183
2700 msgid "B<char *strstr(const char *>I<haystack>B<, const char *>I<needle>B<);>"
2704 #: build/C/man3/string.3:190
2706 "Find the first occurrence of the substring I<needle> in the string "
2707 "I<haystack>, returning a pointer to the found substring."
2711 #: build/C/man3/string.3:190
2713 msgid "B<char *strtok(char *>I<s>B<, const char *>I<delim>B<);>"
2717 #: build/C/man3/string.3:196
2719 "Extract tokens from the string I<s> that are delimited by one of the bytes "
2724 #: build/C/man3/string.3:196
2726 msgid "B<size_t strxfrm(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>"
2730 #: build/C/man3/string.3:204
2732 "Transforms I<src> to the current locale and copies the first I<n> characters "
2737 #: build/C/man3/string.3:208
2739 "The string functions perform string operations on null-terminated strings. "
2740 "See the individual man pages for descriptions of each function."
2744 #: build/C/man3/string.3:233
2746 "B<index>(3), B<rindex>(3), B<stpcpy>(3), B<strcasecmp>(3), B<strcat>(3), "
2747 "B<strchr>(3), B<strcmp>(3), B<strcoll>(3), B<strcpy>(3), B<strcspn>(3), "
2748 "B<strdup>(3), B<strfry>(3), B<strlen>(3), B<strncasecmp>(3), B<strncat>(3), "
2749 "B<strncmp>(3), B<strncpy>(3), B<strpbrk>(3), B<strrchr>(3), B<strsep>(3), "
2750 "B<strspn>(3), B<strstr>(3), B<strtok>(3), B<strxfrm>(3)"
2754 #: build/C/man3/strlen.3:30
2760 #: build/C/man3/strlen.3:30 build/C/man3/strnlen.3:13 build/C/man3/strpbrk.3:30 build/C/man3/strsep.3:33
2766 #: build/C/man3/strlen.3:33
2767 msgid "strlen - calculate the length of a string"
2771 #: build/C/man3/strlen.3:38
2773 msgid "B<size_t strlen(const char *>I<s>B<);>\n"
2777 #: build/C/man3/strlen.3:45
2779 "The B<strlen>() function calculates the length of the string I<s>, "
2780 "excluding the terminating null byte (\\(aq\\e0\\(aq)."
2784 #: build/C/man3/strlen.3:50
2785 msgid "The B<strlen>() function returns the number of bytes in the string I<s>."
2789 #: build/C/man3/strlen.3:55
2790 msgid "The B<strlen>() function is thread-safe."
2794 #: build/C/man3/strlen.3:62
2795 msgid "B<string>(3), B<strnlen>(3), B<wcslen>(3), B<wcsnlen>(3)"
2799 #: build/C/man3/strnlen.3:13
2805 #: build/C/man3/strnlen.3:16
2806 msgid "strnlen - determine the length of a fixed-size string"
2810 #: build/C/man3/strnlen.3:21
2812 msgid "B<size_t strnlen(const char *>I<s>B<, size_t >I<maxlen>B<);>\n"
2816 #: build/C/man3/strnlen.3:29
2817 msgid "B<strnlen>():"
2821 #: build/C/man3/strnlen.3:58
2823 "The B<strnlen>() function returns the number of bytes in the string pointed "
2824 "to by I<s>, excluding the terminating null byte (\\(aq\\e0\\(aq), but at "
2825 "most I<maxlen>. In doing this, B<strnlen>() looks only at the first "
2826 "I<maxlen> bytes at I<s> and never beyond I<s+maxlen>."
2830 #: build/C/man3/strnlen.3:71
2832 "The B<strnlen>() function returns I<strlen(s)>, if that is less than "
2833 "I<maxlen>, or I<maxlen> if there is no null byte (\\(aq\\e0\\(aq) among the "
2834 "first I<maxlen> bytes pointed to by I<s>."
2838 #: build/C/man3/strnlen.3:76
2839 msgid "The B<strnlen>() function is thread-safe."
2843 #: build/C/man3/strnlen.3:78
2844 msgid "POSIX.1-2008."
2848 #: build/C/man3/strnlen.3:80
2849 msgid "B<strlen>(3)"
2853 #: build/C/man3/strpbrk.3:30
2859 #: build/C/man3/strpbrk.3:33
2860 msgid "strpbrk - search a string for any of a set of bytes"
2864 #: build/C/man3/strpbrk.3:38
2866 msgid "B<char *strpbrk(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2870 #: build/C/man3/strpbrk.3:47
2872 "The B<strpbrk>() function locates the first occurrence in the string I<s> "
2873 "of any of the bytes in the string I<accept>."
2877 #: build/C/man3/strpbrk.3:56
2879 "The B<strpbrk>() function returns a pointer to the byte in I<s> that "
2880 "matches one of the bytes in I<accept>, or NULL if no such byte is found."
2884 #: build/C/man3/strpbrk.3:61
2885 msgid "The B<strpbrk>() function is thread-safe."
2889 #: build/C/man3/strpbrk.3:74
2891 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2892 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), B<wcspbrk>(3)"
2896 #: build/C/man3/strsep.3:33
2902 #: build/C/man3/strsep.3:36
2903 msgid "strsep - extract token from string"
2907 #: build/C/man3/strsep.3:41
2909 msgid "B<char *strsep(char **>I<stringp>B<, const char *>I<delim>B<);>\n"
2913 #: build/C/man3/strsep.3:50
2914 msgid "B<strsep>(): _BSD_SOURCE"
2918 #: build/C/man3/strsep.3:73
2920 "If I<*stringp> is NULL, the B<strsep>() function returns NULL and does "
2921 "nothing else. Otherwise, this function finds the first token in the string "
2922 "I<*stringp>, that is delimited by one of the bytes in the string I<delim>. "
2923 "This token is terminated by overwriting the delimiter with a null byte "
2924 "(\\(aq\\e0\\(aq), and I<*stringp> is updated to point past the token. In "
2925 "case no delimiter was found, the token is taken to be the entire string "
2926 "I<*stringp>, and I<*stringp> is made NULL."
2930 #: build/C/man3/strsep.3:79
2932 "The B<strsep>() function returns a pointer to the token, that is, it "
2933 "returns the original value of I<*stringp>."
2937 #: build/C/man3/strsep.3:84
2938 msgid "The B<strsep>() function is thread-safe."
2942 #: build/C/man3/strsep.3:86
2947 #: build/C/man3/strsep.3:95
2949 "The B<strsep>() function was introduced as a replacement for B<strtok>(3), "
2950 "since the latter cannot handle empty fields. However, B<strtok>(3) "
2951 "conforms to C89/C99 and hence is more portable."
2955 #: build/C/man3/strsep.3:98
2956 msgid "Be cautious when using this function. If you do use it, note that:"
2960 #: build/C/man3/strsep.3:100
2961 msgid "This function modifies its first argument."
2965 #: build/C/man3/strsep.3:102
2966 msgid "This function cannot be used on constant strings."
2970 #: build/C/man3/strsep.3:104
2971 msgid "The identity of the delimiting character is lost."
2975 #: build/C/man3/strsep.3:114
2977 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2978 "B<strpbrk>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
2982 #: build/C/man3/strsignal.3:30
2988 #: build/C/man3/strsignal.3:30
2994 #: build/C/man3/strsignal.3:33
2995 msgid "strsignal - return string describing signal"
2999 #: build/C/man3/strsignal.3:38
3001 msgid "B<char *strsignal(int >I<sig>B<);>\n"
3005 #: build/C/man3/strsignal.3:40
3007 msgid "B<extern const char * const >I<sys_siglist>B<[];>\n"
3011 #: build/C/man3/strsignal.3:48
3012 msgid "B<strsignal>():"
3016 #: build/C/man3/strsignal.3:68
3018 "The B<strsignal>() function returns a string describing the signal number "
3019 "passed in the argument I<sig>. The string can be used only until the next "
3020 "call to B<strsignal>()."
3024 #: build/C/man3/strsignal.3:77
3026 "The array I<sys_siglist> holds the signal description strings indexed by "
3027 "signal number. The B<strsignal>() function should be used if possible "
3028 "instead of this array."
3032 #: build/C/man3/strsignal.3:84
3034 "The B<strsignal>() function returns the appropriate description string, or "
3035 "an unknown signal message if the signal number is invalid. On some systems "
3036 "(but not on Linux), NULL may instead be returned for an invalid signal "
3041 #: build/C/man3/strsignal.3:87
3042 msgid "POSIX.1-2008. Present on Solaris and the BSDs."
3046 #: build/C/man3/strsignal.3:90
3047 msgid "B<psignal>(3), B<strerror>(3)"
3051 #: build/C/man3/strspn.3:30
3057 #: build/C/man3/strspn.3:30
3063 #: build/C/man3/strspn.3:33
3064 msgid "strspn, strcspn - get length of a prefix substring"
3068 #: build/C/man3/strspn.3:38
3070 msgid "B<size_t strspn(const char *>I<s>B<, const char *>I<accept>B<);>\n"
3074 #: build/C/man3/strspn.3:40
3076 msgid "B<size_t strcspn(const char *>I<s>B<, const char *>I<reject>B<);>\n"
3080 #: build/C/man3/strspn.3:49
3082 "The B<strspn>() function calculates the length (in bytes) of the initial "
3083 "segment of I<s> which consists entirely of bytes in I<accept>."
3087 #: build/C/man3/strspn.3:57
3089 "The B<strcspn>() function calculates the length of the initial segment of "
3090 "I<s> which consists entirely of bytes not in I<reject>."
3094 #: build/C/man3/strspn.3:66
3096 "The B<strspn>() function returns the number of bytes in the initial segment "
3097 "of I<s> which consist only of bytes from I<accept>."
3101 #: build/C/man3/strspn.3:74
3103 "The B<strcspn>() function returns the number of bytes in the initial "
3104 "segment of I<s> which are not in the string I<reject>."
3108 #: build/C/man3/strspn.3:81
3109 msgid "The B<strspn>() and B<strcspn>() functions are thread-safe."
3113 #: build/C/man3/strspn.3:95
3115 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3116 "B<strpbrk>(3), B<strsep>(3), B<strstr>(3), B<strtok>(3), B<wcscspn>(3), "
3121 #: build/C/man3/strstr.3:33
3127 #: build/C/man3/strstr.3:36
3128 msgid "strstr, strcasestr - locate a substring"
3132 #: build/C/man3/strstr.3:41
3134 msgid "B<char *strstr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
3138 #: build/C/man3/strstr.3:47
3140 msgid "B<char *strcasestr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
3144 #: build/C/man3/strstr.3:56
3146 "The B<strstr>() function finds the first occurrence of the substring "
3147 "I<needle> in the string I<haystack>. The terminating null bytes "
3148 "(\\(aq\\e0\\(aq) are not compared."
3152 #: build/C/man3/strstr.3:62
3154 "The B<strcasestr>() function is like B<strstr>(), but ignores the case of "
3159 #: build/C/man3/strstr.3:65
3161 "These functions return a pointer to the beginning of the located substring, "
3162 "or NULL if the substring is not found."
3166 #: build/C/man3/strstr.3:70
3167 msgid "The B<strstr>() function is thread-safe."
3171 #: build/C/man3/strstr.3:77
3173 "The B<strcasestr>() function is thread-safe with exceptions. It can be "
3174 "safely used in multithreaded applications, as long as B<setlocale>(3) is "
3175 "not called to change the locale during its execution."
3179 #. Early versions of Linux libc (like 4.5.26) would not allow
3184 #. Later versions (like 4.6.27) work correctly,
3191 #: build/C/man3/strstr.3:96
3193 "The B<strstr>() function conforms to C89 and C99. The B<strcasestr>() "
3194 "function is a nonstandard extension."
3198 #: build/C/man3/strstr.3:108
3200 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strcasecmp>(3), B<strchr>(3), "
3201 "B<string>(3), B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strtok>(3), "
3206 #: build/C/man3/strtok.3:32
3212 #: build/C/man3/strtok.3:32
3218 #: build/C/man3/strtok.3:35
3219 msgid "strtok, strtok_r - extract tokens from strings"
3223 #: build/C/man3/strtok.3:40
3225 msgid "B<char *strtok(char *>I<str>B<, const char *>I<delim>B<);>\n"
3229 #: build/C/man3/strtok.3:42
3232 "B<char *strtok_r(char *>I<str>B<, const char *>I<delim>B<, char "
3233 "**>I<saveptr>B<);>\n"
3237 #: build/C/man3/strtok.3:53
3239 "B<strtok_r>(): _SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 1 "
3240 "|| _XOPEN_SOURCE || _POSIX_SOURCE"
3244 #: build/C/man3/strtok.3:66
3246 "The B<strtok>() function breaks a string into a sequence of zero or more "
3247 "nonempty tokens. On the first call to B<strtok>() the string to be parsed "
3248 "should be specified in I<str>. In each subsequent call that should parse "
3249 "the same string, I<str> must be NULL."
3253 #: build/C/man3/strtok.3:75
3255 "The I<delim> argument specifies a set of bytes that delimit the tokens in "
3256 "the parsed string. The caller may specify different strings in I<delim> in "
3257 "successive calls that parse the same string."
3261 #: build/C/man3/strtok.3:84
3263 "Each call to B<strtok>() returns a pointer to a null-terminated string "
3264 "containing the next token. This string does not include the delimiting "
3265 "byte. If no more tokens are found, B<strtok>() returns NULL."
3269 #: build/C/man3/strtok.3:104
3271 "A sequence of calls to B<strtok>() that operate on the same string "
3272 "maintains a pointer that determines the point from which to start searching "
3273 "for the next token. The first call to B<strtok>() sets this pointer to "
3274 "point to the first byte of the string. The start of the next token is "
3275 "determined by scanning forward for the next nondelimiter byte in I<str>. If "
3276 "such a byte is found, it is taken as the start of the next token. If no "
3277 "such byte is found, then there are no more tokens, and B<strtok>() returns "
3278 "NULL. (A string that is empty or that contains only delimiters will thus "
3279 "cause B<strtok>() to return NULL on the first call.)"
3283 #: build/C/man3/strtok.3:117
3285 "The end of each token is found by scanning forward until either the next "
3286 "delimiter byte is found or until the terminating null byte (\\(aq\\e0\\(aq) "
3287 "is encountered. If a delimiter byte is found, it is overwritten with a null "
3288 "byte to terminate the current token, and B<strtok>() saves a pointer to the "
3289 "following byte; that pointer will be used as the starting point when "
3290 "searching for the next token. In this case, B<strtok>() returns a pointer "
3291 "to the start of the found token."
3295 #: build/C/man3/strtok.3:131
3297 "From the above description, it follows that a sequence of two or more "
3298 "contiguous delimiter bytes in the parsed string is considered to be a single "
3299 "delimiter, and that delimiter bytes at the start or end of the string are "
3300 "ignored. Put another way: the tokens returned by B<strtok>() are always "
3301 "nonempty strings. Thus, for example, given the string \"I<aaa;;bbb,>\", "
3302 "successive calls to B<strtok>() that specify the delimiter string \"I<;,>\" "
3303 "would return the strings \"I<aaa>\" and \"I<bbb>\", and then a null pointer."
3307 #: build/C/man3/strtok.3:144
3309 "The B<strtok_r>() function is a reentrant version B<strtok>(). The "
3310 "I<saveptr> argument is a pointer to a I<char\\ *> variable that is used "
3311 "internally by B<strtok_r>() in order to maintain context between successive "
3312 "calls that parse the same string."
3316 #: build/C/man3/strtok.3:156
3318 "On the first call to B<strtok_r>(), I<str> should point to the string to be "
3319 "parsed, and the value of I<saveptr> is ignored. In subsequent calls, I<str> "
3320 "should be NULL, and I<saveptr> should be unchanged since the previous call."
3324 #: build/C/man3/strtok.3:162
3326 "Different strings may be parsed concurrently using sequences of calls to "
3327 "B<strtok_r>() that specify different I<saveptr> arguments."
3331 #: build/C/man3/strtok.3:169
3333 "The B<strtok>() and B<strtok_r>() functions return a pointer to the next "
3334 "token, or NULL if there are no more tokens."
3338 #: build/C/man3/strtok.3:174
3339 msgid "The B<strtok>() function is not thread-safe."
3343 #: build/C/man3/strtok.3:178
3344 msgid "The B<strtok_r>() function is thread-safe."
3348 #: build/C/man3/strtok.3:179
3354 #: build/C/man3/strtok.3:182
3355 msgid "SVr4, POSIX.1-2001, 4.3BSD, C89, C99."
3359 #: build/C/man3/strtok.3:182
3361 msgid "B<strtok_r>()"
3365 #: build/C/man3/strtok.3:185
3366 msgid "POSIX.1-2001."
3370 #: build/C/man3/strtok.3:188
3371 msgid "Be cautious when using these functions. If you do use them, note that:"
3375 #: build/C/man3/strtok.3:190
3376 msgid "These functions modify their first argument."
3380 #: build/C/man3/strtok.3:192
3381 msgid "These functions cannot be used on constant strings."
3385 #: build/C/man3/strtok.3:194
3386 msgid "The identity of the delimiting byte is lost."
3390 #: build/C/man3/strtok.3:201
3392 "The B<strtok>() function uses a static buffer while parsing, so it's not "
3393 "thread safe. Use B<strtok_r>() if this matters to you."
3397 #: build/C/man3/strtok.3:210
3399 "The program below uses nested loops that employ B<strtok_r>() to break a "
3400 "string into a two-level hierarchy of tokens. The first command-line "
3401 "argument specifies the string to be parsed. The second argument specifies "
3402 "the delimiter byte(s) to be used to separate that string into \"major\" "
3403 "tokens. The third argument specifies the delimiter byte(s) to be used to "
3404 "separate the \"major\" tokens into subtokens."
3408 #: build/C/man3/strtok.3:212
3409 msgid "An example of the output produced by this program is the following:"
3413 #: build/C/man3/strtok.3:224
3416 "$B< ./a.out \\(aqa/bbb///cc;xxx:yyy:\\(aq \\(aq:;\\(aq \\(aq/\\(aq>\n"
3428 #: build/C/man3/strtok.3:226
3430 msgid "Program source"
3434 #: build/C/man3/strtok.3:232
3437 "#include E<lt>stdio.hE<gt>\n"
3438 "#include E<lt>stdlib.hE<gt>\n"
3439 "#include E<lt>string.hE<gt>\n"
3443 #: build/C/man3/strtok.3:239
3447 "main(int argc, char *argv[])\n"
3449 " char *str1, *str2, *token, *subtoken;\n"
3450 " char *saveptr1, *saveptr2;\n"
3455 #: build/C/man3/strtok.3:245
3458 " if (argc != 4) {\n"
3459 " fprintf(stderr, \"Usage: %s string delim subdelim\\en\",\n"
3461 " exit(EXIT_FAILURE);\n"
3466 #: build/C/man3/strtok.3:251
3469 " for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) {\n"
3470 " token = strtok_r(str1, argv[2], &saveptr1);\n"
3471 " if (token == NULL)\n"
3473 " printf(\"%d: %s\\en\", j, token);\n"
3477 #: build/C/man3/strtok.3:259
3480 " for (str2 = token; ; str2 = NULL) {\n"
3481 " subtoken = strtok_r(str2, argv[3], &saveptr2);\n"
3482 " if (subtoken == NULL)\n"
3484 " printf(\"\\t --E<gt> %s\\en\", subtoken);\n"
3490 #: build/C/man3/strtok.3:262
3493 " exit(EXIT_SUCCESS);\n"
3498 #: build/C/man3/strtok.3:268
3500 "Another example program using B<strtok>() can be found in "
3501 "B<getaddrinfo_a>(3)."
3505 #: build/C/man3/strtok.3:279
3507 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3508 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
3512 #: build/C/man3/strverscmp.3:25
3518 #: build/C/man3/strverscmp.3:25
3524 #: build/C/man3/strverscmp.3:28
3525 msgid "strverscmp - compare two version strings"
3529 #: build/C/man3/strverscmp.3:35
3531 msgid "B<int strverscmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
3534 #. classical solution: "rename jan jan0 jan?"
3536 #: build/C/man3/strverscmp.3:52
3538 "Often one has files I<jan1>, I<jan2>, ..., I<jan9>, I<jan10>, ... and it "
3539 "feels wrong when B<ls>(1) orders them I<jan1>, I<jan10>, ..., I<jan2>, ..., "
3540 "I<jan9>. In order to rectify this, GNU introduced the I<-v> option to "
3541 "B<ls>(1), which is implemented using B<versionsort>(3), which again uses "
3546 #: build/C/man3/strverscmp.3:63
3548 "Thus, the task of B<strverscmp>() is to compare two strings and find the "
3549 "\"right\" order, while B<strcmp>(3) finds only the lexicographic order. "
3550 "This function does not use the locale category B<LC_COLLATE>, so is meant "
3551 "mostly for situations where the strings are expected to be in ASCII."
3555 #: build/C/man3/strverscmp.3:81
3557 "What this function does is the following. If both strings are equal, return "
3558 "0. Otherwise, find the position between two bytes with the property that "
3559 "before it both strings are equal, while directly after it there is a "
3560 "difference. Find the largest consecutive digit strings containing (or "
3561 "starting at, or ending at) this position. If one or both of these is empty, "
3562 "then return what B<strcmp>(3) would have returned (numerical ordering of "
3563 "byte values). Otherwise, compare both digit strings numerically, where "
3564 "digit strings with one or more leading zeros are interpreted as if they have "
3565 "a decimal point in front (so that in particular digit strings with more "
3566 "leading zeros come before digit strings with fewer leading zeros). Thus, "
3567 "the ordering is I<000>, I<00>, I<01>, I<010>, I<09>, I<0>, I<1>, I<9>, "
3572 #: build/C/man3/strverscmp.3:90
3574 "The B<strverscmp>() function returns an integer less than, equal to, or "
3575 "greater than zero if I<s1> is found, respectively, to be earlier than, equal "
3576 "to, or later than I<s2>."
3580 #: build/C/man3/strverscmp.3:97
3581 msgid "B<rename>(1), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3)"
3585 #: build/C/man3/strxfrm.3:30
3591 #: build/C/man3/strxfrm.3:30
3597 #: build/C/man3/strxfrm.3:33
3598 msgid "strxfrm - string transformation"
3602 #: build/C/man3/strxfrm.3:38
3605 "B<size_t strxfrm(char *>I<dest>B<, const char *>I<src>B<, size_t "
3610 #: build/C/man3/strxfrm.3:62
3612 "The B<strxfrm>() function transforms the I<src> string into a form such "
3613 "that the result of B<strcmp>(3) on two strings that have been transformed "
3614 "with B<strxfrm>() is the same as the result of B<strcoll>(3) on the two "
3615 "strings before their transformation. The first I<n> bytes of the "
3616 "transformed string are placed in I<dest>. The transformation is based on "
3617 "the program's current locale for category B<LC_COLLATE>. (See "
3622 #: build/C/man3/strxfrm.3:76
3624 "The B<strxfrm>() function returns the number of bytes required to store the "
3625 "transformed string in I<dest> excluding the terminating null byte "
3626 "(\\(aq\\e0\\(aq). If the value returned is I<n> or more, the contents of "
3627 "I<dest> are indeterminate."
3631 #: build/C/man3/strxfrm.3:88
3633 "In the I<POSIX> or I<C> locales B<strxfrm>() is equivalent to copying the "
3634 "string with B<strncpy>(3)."
3638 #: build/C/man3/strxfrm.3:96
3640 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
3641 "B<strcoll>(3), B<string>(3)"