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: 2012-05-01 04:39+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:29
26 #: build/C/man3/bcmp.3:29 build/C/man3/bzero.3:29
32 #: build/C/man3/bcmp.3:29 build/C/man3/bcopy.3:31 build/C/man3/bzero.3:29
38 #: build/C/man3/bcmp.3:29 build/C/man3/bcopy.3:31 build/C/man3/bstring.3:30 build/C/man3/bzero.3:29 build/C/man3/ffs.3:31 build/C/man3/index.3:29 build/C/man3/memccpy.3:28 build/C/man3/memchr.3:30 build/C/man3/memcmp.3:28 build/C/man3/memcpy.3:28 build/C/man3/memfrob.3:28 build/C/man3/memmem.3:28 build/C/man3/memmove.3:28 build/C/man3/mempcpy.3:6 build/C/man3/memset.3:28 build/C/man3/stpcpy.3:25 build/C/man3/stpncpy.3:12 build/C/man3/strcasecmp.3:28 build/C/man3/strcat.3:30 build/C/man3/strchr.3:31 build/C/man3/strcmp.3:30 build/C/man3/strcoll.3:28 build/C/man3/strcpy.3:33 build/C/man3/strdup.3:29 build/C/man3/strerror.3:37 build/C/man3/strfry.3:28 build/C/man3/string.3:28 build/C/man3/strlen.3:28 build/C/man3/strnlen.3:11 build/C/man3/strpbrk.3:28 build/C/man3/strsep.3:31 build/C/man3/strsignal.3:28 build/C/man3/strspn.3:28 build/C/man3/strstr.3:31 build/C/man3/strtok.3:28 build/C/man3/strverscmp.3:23 build/C/man3/strxfrm.3:28
40 msgid "Linux Programmer's Manual"
44 #: build/C/man3/bcmp.3:30 build/C/man3/bcopy.3:32 build/C/man3/bstring.3:31 build/C/man3/bzero.3:30 build/C/man3/ffs.3:32 build/C/man3/index.3:30 build/C/man3/memccpy.3:29 build/C/man3/memchr.3:31 build/C/man3/memcmp.3:29 build/C/man3/memcpy.3:29 build/C/man3/memfrob.3:29 build/C/man3/memmem.3:29 build/C/man3/memmove.3:29 build/C/man3/mempcpy.3:7 build/C/man3/memset.3:29 build/C/man3/stpcpy.3:26 build/C/man3/stpncpy.3:13 build/C/man3/strcasecmp.3:29 build/C/man3/strcat.3:31 build/C/man3/strchr.3:32 build/C/man3/strcmp.3:31 build/C/man3/strcoll.3:29 build/C/man3/strcpy.3:34 build/C/man3/strdup.3:30 build/C/man3/strerror.3:38 build/C/man3/strfry.3:29 build/C/man3/string.3:29 build/C/man3/strlen.3:29 build/C/man3/strnlen.3:12 build/C/man3/strpbrk.3:29 build/C/man3/strsep.3:32 build/C/man3/strsignal.3:29 build/C/man3/strspn.3:29 build/C/man3/strstr.3:32 build/C/man3/strtok.3:29 build/C/man3/strverscmp.3:24 build/C/man3/strxfrm.3:29
50 #: build/C/man3/bcmp.3:32
51 msgid "bcmp - compare byte sequences"
55 #: build/C/man3/bcmp.3:32 build/C/man3/bcopy.3:34 build/C/man3/bstring.3:34 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:9 build/C/man3/memset.3:31 build/C/man3/stpcpy.3:28 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:34 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:31 build/C/man3/strverscmp.3:26 build/C/man3/strxfrm.3:31
61 #: build/C/man3/bcmp.3:35 build/C/man3/bcopy.3:37 build/C/man3/bzero.3:35 build/C/man3/ffs.3:37 build/C/man3/index.3:35 build/C/man3/strcasecmp.3:34 build/C/man3/string.3:37
63 msgid "B<#include E<lt>strings.hE<gt>>\n"
67 #: build/C/man3/bcmp.3:37
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:38 build/C/man3/bcopy.3:40 build/C/man3/bstring.3:61 build/C/man3/bzero.3:38 build/C/man3/ffs.3:72 build/C/man3/index.3:40 build/C/man3/memccpy.3:37 build/C/man3/memchr.3:52 build/C/man3/memcmp.3:37 build/C/man3/memcpy.3:37 build/C/man3/memfrob.3:38 build/C/man3/memmem.3:39 build/C/man3/memmove.3:37 build/C/man3/mempcpy.3:23 build/C/man3/memset.3:37 build/C/man3/stpcpy.3:53 build/C/man3/stpncpy.3:40 build/C/man3/strcasecmp.3:39 build/C/man3/strcat.3:41 build/C/man3/strchr.3:47 build/C/man3/strcmp.3:41 build/C/man3/strcoll.3:37 build/C/man3/strcpy.3:44 build/C/man3/strdup.3:75 build/C/man3/strerror.3:65 build/C/man3/strfry.3:39 build/C/man3/string.3:88 build/C/man3/strlen.3:37 build/C/man3/strnlen.3:39 build/C/man3/strpbrk.3:37 build/C/man3/strsep.3:48 build/C/man3/strsignal.3:58 build/C/man3/strspn.3:39 build/C/man3/strstr.3:46 build/C/man3/strtok.3:50 build/C/man3/strverscmp.3:34 build/C/man3/strxfrm.3:37
79 #: build/C/man3/bcmp.3:54
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:54 build/C/man3/bcopy.3:50 build/C/man3/bzero.3:46 build/C/man3/ffs.3:85 build/C/man3/index.3:53 build/C/man3/memccpy.3:45 build/C/man3/memchr.3:103 build/C/man3/memcmp.3:46 build/C/man3/memcpy.3:46 build/C/man3/memfrob.3:51 build/C/man3/memmem.3:45 build/C/man3/memmove.3:51 build/C/man3/mempcpy.3:49 build/C/man3/memset.3:42 build/C/man3/stpcpy.3:61 build/C/man3/stpncpy.3:59 build/C/man3/strcasecmp.3:52 build/C/man3/strcat.3:91 build/C/man3/strchr.3:79 build/C/man3/strcmp.3:54 build/C/man3/strcoll.3:49 build/C/man3/strcpy.3:91 build/C/man3/strdup.3:102 build/C/man3/strerror.3:134 build/C/man3/strfry.3:47 build/C/man3/strlen.3:42 build/C/man3/strnlen.3:49 build/C/man3/strpbrk.3:42 build/C/man3/strsep.3:61 build/C/man3/strsignal.3:73 build/C/man3/strspn.3:51 build/C/man3/strstr.3:58 build/C/man3/strtok.3:104 build/C/man3/strverscmp.3:79 build/C/man3/strxfrm.3:54
93 #: build/C/man3/bcmp.3:59
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:59 build/C/man3/bcopy.3:52 build/C/man3/bzero.3:48 build/C/man3/ffs.3:89 build/C/man3/index.3:60 build/C/man3/memccpy.3:51 build/C/man3/memchr.3:122 build/C/man3/memcmp.3:53 build/C/man3/memcpy.3:50 build/C/man3/memfrob.3:56 build/C/man3/memmem.3:50 build/C/man3/memmove.3:55 build/C/man3/mempcpy.3:54 build/C/man3/memset.3:47 build/C/man3/stpcpy.3:66 build/C/man3/stpncpy.3:64 build/C/man3/strcasecmp.3:61 build/C/man3/strcat.3:97 build/C/man3/strchr.3:102 build/C/man3/strcmp.3:63 build/C/man3/strcoll.3:56 build/C/man3/strcpy.3:98 build/C/man3/strdup.3:111 build/C/man3/strerror.3:173 build/C/man3/strfry.3:52 build/C/man3/strlen.3:46 build/C/man3/strnlen.3:56 build/C/man3/strpbrk.3:48 build/C/man3/strsep.3:66 build/C/man3/strsignal.3:80 build/C/man3/strspn.3:63 build/C/man3/strstr.3:61 build/C/man3/strtok.3:111 build/C/man3/strverscmp.3:86 build/C/man3/strxfrm.3:62
102 msgid "CONFORMING TO"
106 #: build/C/man3/bcmp.3:66
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:66 build/C/man3/bcopy.3:66 build/C/man3/bstring.3:80 build/C/man3/bzero.3:55 build/C/man3/ffs.3:101 build/C/man3/index.3:71 build/C/man3/memccpy.3:53 build/C/man3/memchr.3:134 build/C/man3/memcmp.3:55 build/C/man3/memcpy.3:52 build/C/man3/memfrob.3:61 build/C/man3/memmem.3:63 build/C/man3/memmove.3:57 build/C/man3/mempcpy.3:67 build/C/man3/memset.3:49 build/C/man3/stpcpy.3:98 build/C/man3/stpncpy.3:66 build/C/man3/strcasecmp.3:63 build/C/man3/strcat.3:99 build/C/man3/strchr.3:109 build/C/man3/strcmp.3:65 build/C/man3/strcoll.3:63 build/C/man3/strcpy.3:135 build/C/man3/strdup.3:121 build/C/man3/strerror.3:202 build/C/man3/strfry.3:57 build/C/man3/string.3:92 build/C/man3/strlen.3:48 build/C/man3/strnlen.3:58 build/C/man3/strpbrk.3:50 build/C/man3/strsep.3:86 build/C/man3/strsignal.3:83 build/C/man3/strspn.3:65 build/C/man3/strstr.3:74 build/C/man3/strtok.3:201 build/C/man3/strverscmp.3:88 build/C/man3/strxfrm.3:70
120 #: build/C/man3/bcmp.3:73
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:73 build/C/man3/bcopy.3:72 build/C/man3/bstring.3:92 build/C/man3/bzero.3:58 build/C/man3/ffs.3:103 build/C/man3/index.3:81 build/C/man3/memccpy.3:59 build/C/man3/memchr.3:145 build/C/man3/memcmp.3:63 build/C/man3/memcpy.3:60 build/C/man3/memfrob.3:63 build/C/man3/memmem.3:65 build/C/man3/memmove.3:64 build/C/man3/mempcpy.3:72 build/C/man3/memset.3:53 build/C/man3/stpcpy.3:107 build/C/man3/stpncpy.3:69 build/C/man3/strcasecmp.3:72 build/C/man3/strcat.3:108 build/C/man3/strchr.3:122 build/C/man3/strcmp.3:75 build/C/man3/strcoll.3:71 build/C/man3/strcpy.3:146 build/C/man3/strdup.3:129 build/C/man3/strerror.3:208 build/C/man3/strfry.3:60 build/C/man3/string.3:117 build/C/man3/strlen.3:53 build/C/man3/strnlen.3:60 build/C/man3/strpbrk.3:61 build/C/man3/strsep.3:96 build/C/man3/strsignal.3:86 build/C/man3/strspn.3:77 build/C/man3/strstr.3:86 build/C/man3/strtok.3:212 build/C/man3/strverscmp.3:93 build/C/man3/strxfrm.3:78
133 #: build/C/man3/bcmp.3:80 build/C/man3/bcopy.3:79 build/C/man3/bstring.3:99 build/C/man3/bzero.3:65 build/C/man3/ffs.3:110 build/C/man3/index.3:88 build/C/man3/memccpy.3:66 build/C/man3/memchr.3:152 build/C/man3/memcmp.3:70 build/C/man3/memcpy.3:67 build/C/man3/memfrob.3:70 build/C/man3/memmem.3:72 build/C/man3/memmove.3:71 build/C/man3/mempcpy.3:79 build/C/man3/memset.3:60 build/C/man3/stpcpy.3:114 build/C/man3/stpncpy.3:76 build/C/man3/strcasecmp.3:79 build/C/man3/strcat.3:115 build/C/man3/strchr.3:129 build/C/man3/strcmp.3:82 build/C/man3/strcoll.3:78 build/C/man3/strcpy.3:153 build/C/man3/strdup.3:136 build/C/man3/strerror.3:215 build/C/man3/strfry.3:67 build/C/man3/string.3:124 build/C/man3/strlen.3:60 build/C/man3/strnlen.3:67 build/C/man3/strpbrk.3:68 build/C/man3/strsep.3:103 build/C/man3/strsignal.3:93 build/C/man3/strspn.3:84 build/C/man3/strstr.3:93 build/C/man3/strtok.3:219 build/C/man3/strverscmp.3:100 build/C/man3/strxfrm.3:85
135 "This page is part of release 3.40 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:31
147 #: build/C/man3/bcopy.3:31
153 #: build/C/man3/bcopy.3:34
154 msgid "bcopy - copy byte sequence"
158 #: build/C/man3/bcopy.3:39
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:50
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:52 build/C/man3/bzero.3:48
176 #: build/C/man3/bcopy.3:66
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:72
186 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
190 #: build/C/man3/bstring.3:30
196 #: build/C/man3/bstring.3:30
202 #: build/C/man3/bstring.3:34
204 "bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem, "
205 "memmove, memset - byte string operations"
209 #: build/C/man3/bstring.3:37 build/C/man3/ffs.3:41 build/C/man3/memccpy.3:34 build/C/man3/memchr.3:36 build/C/man3/memcmp.3:34 build/C/man3/memcpy.3:34 build/C/man3/memmove.3:34 build/C/man3/mempcpy.3:14 build/C/man3/memset.3:34 build/C/man3/stpcpy.3:31 build/C/man3/stpncpy.3:18 build/C/man3/strcat.3:36 build/C/man3/strchr.3:37 build/C/man3/strcmp.3:36 build/C/man3/strcoll.3:34 build/C/man3/strcpy.3:39 build/C/man3/strdup.3:35 build/C/man3/strerror.3:43 build/C/man3/strfry.3:36 build/C/man3/string.3:47 build/C/man3/strlen.3:34 build/C/man3/strnlen.3:17 build/C/man3/strpbrk.3:34 build/C/man3/strsep.3:37 build/C/man3/strsignal.3:34 build/C/man3/strspn.3:34 build/C/man3/strstr.3:37 build/C/man3/strstr.3:43 build/C/man3/strtok.3:34 build/C/man3/strverscmp.3:31 build/C/man3/strxfrm.3:34
211 msgid "B<#include E<lt>string.hE<gt>>\n"
215 #: build/C/man3/bstring.3:39
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:41
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:43
229 msgid "B<void bzero(void *>I<s>B<, int >I<n>B<);>\n"
233 #: build/C/man3/bstring.3:45 build/C/man3/memccpy.3:36
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:47 build/C/man3/memchr.3:38
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:49 build/C/man3/memcmp.3:36
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:51 build/C/man3/memcpy.3:36
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:53 build/C/man3/memfrob.3:37
261 msgid "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n"
265 #: build/C/man3/bstring.3:56
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:58 build/C/man3/memmove.3:36
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:60 build/C/man3/memset.3:36
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:66
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:66 build/C/man3/ffs.3:98 build/C/man3/strcoll.3:58 build/C/man3/strcpy.3:100 build/C/man3/strsep.3:68 build/C/man3/strxfrm.3:64
298 #. The old functions are not even available on some non-GNU/Linux systems.
300 #: build/C/man3/bstring.3:80
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:92
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:29
321 #: build/C/man3/bzero.3:32
322 msgid "bzero - write zero-valued bytes"
326 #: build/C/man3/bzero.3:37
328 msgid "B<void bzero(void *>I<s>B<, size_t >I<n>B<);>\n"
332 #: build/C/man3/bzero.3:46
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:55
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:58
348 msgid "B<memset>(3), B<swab>(3)"
352 #: build/C/man3/ffs.3:31
358 #: build/C/man3/ffs.3:31 build/C/man3/strcasecmp.3:28 build/C/man3/strcmp.3:30 build/C/man3/strcoll.3:28 build/C/man3/strcpy.3:33 build/C/man3/strfry.3:28 build/C/man3/strpbrk.3:28 build/C/man3/strspn.3:28
364 #: build/C/man3/ffs.3:31 build/C/man3/index.3:29 build/C/man3/memccpy.3:28 build/C/man3/memfrob.3:28 build/C/man3/memmem.3:28 build/C/man3/memmove.3:28 build/C/man3/mempcpy.3:6 build/C/man3/memset.3:28 build/C/man3/stpcpy.3:25 build/C/man3/stpncpy.3:12 build/C/man3/strcat.3:30 build/C/man3/strchr.3:31 build/C/man3/strcoll.3:28 build/C/man3/strcpy.3:33 build/C/man3/strdup.3:29 build/C/man3/strfry.3:28 build/C/man3/strlen.3:28 build/C/man3/strnlen.3:11 build/C/man3/strsep.3:31 build/C/man3/strsignal.3:28 build/C/man3/strstr.3:31 build/C/man3/strtok.3:28 build/C/man3/strverscmp.3:23 build/C/man3/strxfrm.3:28
370 #: build/C/man3/ffs.3:34
371 msgid "ffs, ffsl, ffsll - find first bit set in a word"
375 #: build/C/man3/ffs.3:39
377 msgid "B<int ffs(int >I<i>B<);>\n"
381 #: build/C/man3/ffs.3:43
383 msgid "B<int ffsl(long int >I<i>B<);>\n"
387 #: build/C/man3/ffs.3:45
389 msgid "B<int ffsll(long long int >I<i>B<);>\n"
393 #: build/C/man3/ffs.3:50 build/C/man3/memchr.3:47 build/C/man3/stpcpy.3:38 build/C/man3/stpncpy.3:25 build/C/man3/strdup.3:48 build/C/man3/strerror.3:56 build/C/man3/strnlen.3:24 build/C/man3/strsep.3:44 build/C/man3/strsignal.3:43 build/C/man3/strtok.3:43
394 msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
398 #: build/C/man3/ffs.3:55
403 #: build/C/man3/ffs.3:56
405 msgid "Since glibc 2.12:"
409 #: build/C/man3/ffs.3:60
411 "_SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L || "
412 "_XOPEN_SOURCE\\ E<gt>=\\ 700 ||"
416 #: build/C/man3/ffs.3:60
418 msgid "Before glibc 2.12:"
422 #: build/C/man3/ffs.3:63
427 #: build/C/man3/ffs.3:67
428 msgid "B<ffsl>(), B<ffsll>():"
432 #: build/C/man3/ffs.3:69 build/C/man3/stpcpy.3:50 build/C/man3/stpncpy.3:37 build/C/man3/strdup.3:68 build/C/man3/strnlen.3:36 build/C/man3/strsignal.3:55
437 #: build/C/man3/ffs.3:85
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:89
449 "These functions return the position of the first bit set, or 0 if no bits "
454 #: build/C/man3/ffs.3:92
455 msgid "B<ffs>(): 4.3BSD, POSIX.1-2001."
459 #: build/C/man3/ffs.3:98
460 msgid "The B<ffsl>() and B<ffsll>() functions are glibc extensions."
464 #: build/C/man3/ffs.3:101
465 msgid "BSD systems have a prototype in I<E<lt>string.hE<gt>>."
469 #: build/C/man3/ffs.3:103
474 #: build/C/man3/index.3:29
480 #: build/C/man3/index.3:29
486 #: build/C/man3/index.3:32
487 msgid "index, rindex - locate character in string"
491 #: build/C/man3/index.3:37 build/C/man3/string.3:43
493 msgid "B<char *index(const char *>I<s>B<, int >I<c>B<);>\n"
497 #: build/C/man3/index.3:39 build/C/man3/string.3:45
499 msgid "B<char *rindex(const char *>I<s>B<, int >I<c>B<);>\n"
503 #: build/C/man3/index.3:45
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:50
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:53
519 "The terminating null byte (\\(aq\\e0\\(aq) is considered to be a part of the "
524 #: build/C/man3/index.3:60
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:71
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:81
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:28
552 #: build/C/man3/memccpy.3:28
558 #: build/C/man3/memccpy.3:31
559 msgid "memccpy - copy memory area"
563 #: build/C/man3/memccpy.3:43
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:45
571 msgid "If the memory areas overlap, the results are undefined."
575 #: build/C/man3/memccpy.3:51
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:53
584 msgid "SVr4, 4.3BSD, POSIX.1-2001."
588 #: build/C/man3/memccpy.3:59
589 msgid "B<bcopy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
593 #: build/C/man3/memchr.3:30
599 #: build/C/man3/memchr.3:30
605 #: build/C/man3/memchr.3:33
606 msgid "memchr, memrchr, rawmemchr - scan memory for a character"
610 #: build/C/man3/memchr.3:40
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:42
618 msgid "B<void *rawmemchr(const void *>I<s>B<, int >I<c>B<);>\n"
622 #: build/C/man3/memchr.3:52
623 msgid "B<memrchr>(), B<rawmemchr>(): _GNU_SOURCE"
627 #: build/C/man3/memchr.3:68
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:79
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:97
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 "
649 "argument to limit the range of the search). If an instance of I<c> is not "
650 "found, the results are unpredictable. The following call is a fast means of "
651 "locating a string's terminating null byte:"
655 #: build/C/man3/memchr.3:101
657 msgid "char *p = rawmemchr(s,\\ \\(aq\\e0\\(aq);\n"
661 #: build/C/man3/memchr.3:111
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:116
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:116 build/C/man3/mempcpy.3:51 build/C/man3/strchr.3:99
682 #: build/C/man3/memchr.3:119
683 msgid "B<rawmemchr>() first appeared in glibc in version 2.1."
687 #: build/C/man3/memchr.3:122
688 msgid "B<memrchr>() first appeared in glibc in version 2.2."
692 #: build/C/man3/memchr.3:126
693 msgid "The B<memchr>() function conforms to SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
697 #: build/C/man3/memchr.3:130
698 msgid "The B<memrchr>() function is a GNU extension, available since glibc 2.1.91."
702 #: build/C/man3/memchr.3:134
703 msgid "The B<rawmemchr>() function is a GNU extension, available since glibc 2.1."
707 #: build/C/man3/memchr.3:145
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:28
720 #: build/C/man3/memcmp.3:28
726 #: build/C/man3/memcmp.3:31
727 msgid "memcmp - compare memory areas"
731 #: build/C/man3/memcmp.3:46
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>. It returns an "
735 "integer less than, equal to, or greater than zero if I<s1> is found, "
736 "respectively, to be less than, to match, or be greater than I<s2>."
740 #: build/C/man3/memcmp.3:53
742 "The B<memcmp>() function returns an integer less than, equal to, or greater "
743 "than zero if the first I<n> bytes of I<s1> is found, respectively, to be "
744 "less than, to match, or be greater than the first I<n> bytes of I<s2>."
748 #: build/C/man3/memcmp.3:55 build/C/man3/memcpy.3:52 build/C/man3/memmove.3:57 build/C/man3/memset.3:49
749 msgid "SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
753 #: build/C/man3/memcmp.3:63
755 "B<bcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), "
756 "B<strncasecmp>(3), B<strncmp>(3), B<wmemcmp>(3)"
760 #: build/C/man3/memcpy.3:28
766 #: build/C/man3/memcpy.3:28
772 #: build/C/man3/memcpy.3:31
773 msgid "memcpy - copy memory area"
777 #: build/C/man3/memcpy.3:46
779 "The B<memcpy>() function copies I<n> bytes from memory area I<src> to "
780 "memory area I<dest>. The memory areas must not overlap. Use B<memmove>(3) "
781 "if the memory areas do overlap."
785 #: build/C/man3/memcpy.3:50
786 msgid "The B<memcpy>() function returns a pointer to I<dest>."
790 #: build/C/man3/memcpy.3:60
792 "B<bcopy>(3), B<memccpy>(3), B<memmove>(3), B<mempcpy>(3), B<strcpy>(3), "
793 "B<strncpy>(3), B<wmemcpy>(3)"
797 #: build/C/man3/memfrob.3:28
803 #: build/C/man3/memfrob.3:28
809 #: build/C/man3/memfrob.3:31
810 msgid "memfrob - frobnicate (encrypt) a memory area"
814 #: build/C/man3/memfrob.3:35
817 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
818 "B<#include E<lt>string.hE<gt>>\n"
822 #: build/C/man3/memfrob.3:48
824 "The B<memfrob>() function encrypts the first I<n> bytes of the memory area "
825 "I<s> by exclusive-ORing each character with the number 42. The effect can "
826 "be reversed by using B<memfrob>() on the encrypted memory area."
830 #: build/C/man3/memfrob.3:51
832 "Note that this function is not a proper encryption routine as the XOR "
833 "constant is fixed, and is only suitable for hiding strings."
837 #: build/C/man3/memfrob.3:56
838 msgid "The B<memfrob>() function returns a pointer to the encrypted memory area."
842 #: build/C/man3/memfrob.3:61
843 msgid "The B<memfrob>() function is unique to the GNU C Library."
847 #: build/C/man3/memfrob.3:63
852 #: build/C/man3/memmem.3:28
858 #: build/C/man3/memmem.3:28
864 #: build/C/man3/memmem.3:31
865 msgid "memmem - locate a substring"
869 #: build/C/man3/memmem.3:35 build/C/man3/strchr.3:44
872 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
873 "B<#include E<lt>string.hE<gt>>\n"
877 #: build/C/man3/memmem.3:38
880 "B<void *memmem(const void *>I<haystack>B<, size_t >I<haystacklen>B<,>\n"
881 "B< const void *>I<needle>B<, size_t >I<needlelen>B<);>\n"
885 #: build/C/man3/memmem.3:45
887 "The B<memmem>() function finds the start of the first occurrence of the "
888 "substring I<needle> of length I<needlelen> in the memory area I<haystack> of "
889 "length I<haystacklen>."
893 #: build/C/man3/memmem.3:50
895 "The B<memmem>() function returns a pointer to the beginning of the "
896 "substring, or NULL if the substring is not found."
900 #: build/C/man3/memmem.3:52 build/C/man3/mempcpy.3:56 build/C/man3/strverscmp.3:88
901 msgid "This function is a GNU extension."
905 #: build/C/man3/memmem.3:52 build/C/man3/stpcpy.3:71 build/C/man3/strcpy.3:124 build/C/man3/strsep.3:77 build/C/man3/strstr.3:68 build/C/man3/strtok.3:118
911 #: build/C/man3/memmem.3:57
913 "This function was broken in Linux libraries up to and including libc 5.0.9; "
914 "there the I<needle> and I<haystack> arguments were interchanged, and a "
915 "pointer to the end of the first occurrence of I<needle> was returned."
919 #: build/C/man3/memmem.3:63
921 "Both old and new libc's have the bug that if I<needle> is empty, "
922 "I<haystack-1> (instead of I<haystack>) is returned. And glibc 2.0 makes it "
923 "worse, returning a pointer to the last byte of I<haystack>. This is fixed "
928 #: build/C/man3/memmem.3:65
933 #: build/C/man3/memmove.3:28
939 #: build/C/man3/memmove.3:28
945 #: build/C/man3/memmove.3:31
946 msgid "memmove - copy memory area"
950 #: build/C/man3/memmove.3:51
952 "The B<memmove>() function copies I<n> bytes from memory area I<src> to "
953 "memory area I<dest>. The memory areas may overlap: copying takes place as "
954 "though the bytes in I<src> are first copied into a temporary array that does "
955 "not overlap I<src> or I<dest>, and the bytes are then copied from the "
956 "temporary array to I<dest>."
960 #: build/C/man3/memmove.3:55
961 msgid "The B<memmove>() function returns a pointer to I<dest>."
965 #: build/C/man3/memmove.3:64
967 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<strncpy>(3), "
972 #: build/C/man3/mempcpy.3:6
978 #: build/C/man3/mempcpy.3:6
984 #: build/C/man3/mempcpy.3:9
985 msgid "mempcpy, wmempcpy - copy memory area"
989 #: build/C/man3/mempcpy.3:12 build/C/man3/mempcpy.3:18 build/C/man3/strfry.3:34 build/C/man3/strstr.3:41 build/C/man3/strverscmp.3:29
991 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
995 #: build/C/man3/mempcpy.3:16
997 msgid "B<void *mempcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
1001 #: build/C/man3/mempcpy.3:20
1003 msgid "B<#include E<lt>wchar.hE<gt>>\n"
1007 #: build/C/man3/mempcpy.3:22
1010 "B<wchar_t *wmempcpy(wchar_t *>I<dest>B<, const wchar_t *>I<src>B<, size_t "
1015 #: build/C/man3/mempcpy.3:38
1017 "The B<mempcpy>() function is nearly identical to the B<memcpy>(3) "
1018 "function. It copies I<n> bytes from the object beginning at I<src> into the "
1019 "object pointed to by I<dest>. But instead of returning the value of I<dest> "
1020 "it returns a pointer to the byte following the last written byte."
1024 #: build/C/man3/mempcpy.3:41
1026 "This function is useful in situations where a number of objects shall be "
1027 "copied to consecutive memory positions."
1031 #: build/C/man3/mempcpy.3:49
1033 "The B<wmempcpy>() function is identical but takes I<wchar_t> type arguments "
1034 "and copies I<n> wide characters."
1038 #: build/C/man3/mempcpy.3:51
1039 msgid "I<dest> + I<n>."
1043 #: build/C/man3/mempcpy.3:54
1044 msgid "B<mempcpy>() first appeared in glibc in version 2.1."
1048 #: build/C/man3/mempcpy.3:56 build/C/man3/stpcpy.3:74 build/C/man3/strtok.3:134
1054 #: build/C/man3/mempcpy.3:66
1058 "combine(void *o1, size_t s1, void *o2, size_t s2)\n"
1060 " void *result = malloc(s1 + s2);\n"
1061 " if (result != NULL)\n"
1062 " mempcpy(mempcpy(result, o1, s1), o2, s2);\n"
1068 #: build/C/man3/mempcpy.3:72
1069 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<wmemcpy>(3)"
1073 #: build/C/man3/memset.3:28
1079 #: build/C/man3/memset.3:28
1085 #: build/C/man3/memset.3:31
1086 msgid "memset - fill memory with a constant byte"
1090 #: build/C/man3/memset.3:42
1092 "The B<memset>() function fills the first I<n> bytes of the memory area "
1093 "pointed to by I<s> with the constant byte I<c>."
1097 #: build/C/man3/memset.3:47
1098 msgid "The B<memset>() function returns a pointer to the memory area I<s>."
1102 #: build/C/man3/memset.3:53
1103 msgid "B<bzero>(3), B<swab>(3), B<wmemset>(3)"
1107 #: build/C/man3/stpcpy.3:25
1113 #: build/C/man3/stpcpy.3:25
1119 #: build/C/man3/stpcpy.3:28
1120 msgid "stpcpy - copy a string returning a pointer to its end"
1124 #: build/C/man3/stpcpy.3:33 build/C/man3/string.3:49
1126 msgid "B<char *stpcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1130 #: build/C/man3/stpcpy.3:41
1131 msgid "B<stpcpy>():"
1135 #: build/C/man3/stpcpy.3:44 build/C/man3/stpncpy.3:31 build/C/man3/strdup.3:62 build/C/man3/strnlen.3:30 build/C/man3/strsignal.3:49
1137 msgid "Since glibc 2.10:"
1141 #: build/C/man3/stpcpy.3:47 build/C/man3/stpncpy.3:34 build/C/man3/strnlen.3:33 build/C/man3/strsignal.3:52
1142 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
1146 #: build/C/man3/stpcpy.3:47 build/C/man3/stpncpy.3:34 build/C/man3/strdup.3:65 build/C/man3/strnlen.3:33 build/C/man3/strsignal.3:52
1148 msgid "Before glibc 2.10:"
1152 #: build/C/man3/stpcpy.3:61
1154 "The B<stpcpy>() function copies the string pointed to by I<src> (including "
1155 "the terminating null byte (\\(aq\\e0\\(aq)) to the array pointed to by "
1156 "I<dest>. The strings may not overlap, and the destination string I<dest> "
1157 "must be large enough to receive the copy."
1161 #: build/C/man3/stpcpy.3:66
1163 "B<stpcpy>() returns a pointer to the B<end> of the string I<dest> (that is, "
1164 "the address of the terminating null byte) rather than the beginning."
1168 #: build/C/man3/stpcpy.3:71
1170 "This function was added to POSIX.1-2008. Before that, it was not part of the "
1171 "C or POSIX.1 standards, nor customary on UNIX systems, but was not a GNU "
1172 "invention either. Perhaps it came from MS-DOS. It is also present on the "
1177 #: build/C/man3/stpcpy.3:74
1178 msgid "This function may overrun the buffer I<dest>."
1182 #: build/C/man3/stpcpy.3:79
1184 "For example, this program uses B<stpcpy>() to concatenate B<foo> and B<bar> "
1185 "to produce B<foobar>, which it then prints."
1189 #: build/C/man3/stpcpy.3:85
1192 "#define _GNU_SOURCE\n"
1193 "#include E<lt>string.hE<gt>\n"
1194 "#include E<lt>stdio.hE<gt>\n"
1198 #: build/C/man3/stpcpy.3:91
1204 " char buffer[20];\n"
1205 " char *to = buffer;\n"
1209 #: build/C/man3/stpcpy.3:96
1212 " to = stpcpy(to, \"foo\");\n"
1213 " to = stpcpy(to, \"bar\");\n"
1214 " printf(\"%s\\en\", buffer);\n"
1219 #: build/C/man3/stpcpy.3:107
1221 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpncpy>(3), "
1222 "B<strcpy>(3), B<string>(3), B<wcpcpy>(3)"
1226 #: build/C/man3/stpncpy.3:12
1232 #: build/C/man3/stpncpy.3:12 build/C/man3/strcat.3:30 build/C/man3/strlen.3:28 build/C/man3/strnlen.3:11 build/C/man3/strsep.3:31 build/C/man3/strstr.3:31 build/C/man3/strxfrm.3:28
1238 #: build/C/man3/stpncpy.3:15
1239 msgid "stpncpy - copy a fixed-size string, returning a pointer to its end"
1243 #: build/C/man3/stpncpy.3:20
1245 msgid "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1249 #: build/C/man3/stpncpy.3:28
1250 msgid "B<stpncpy>():"
1254 #: build/C/man3/stpncpy.3:54
1256 "The B<stpncpy>() function copies at most I<n> characters from the string "
1257 "pointed to by I<src>, including the terminating null byte (\\(aq\\e0\\(aq), "
1258 "to the array pointed to by I<dest>. Exactly I<n> characters are written at "
1259 "I<dest>. If the length I<strlen(src)> is smaller than I<n>, the remaining "
1260 "characters in the array pointed to by I<dest> are filled with null bytes "
1261 "(\\(aq\\e0\\(aq), If the length I<strlen(src)> is greater or equal to I<n>, "
1262 "the string pointed to by I<dest> will not be null-terminated."
1266 #: build/C/man3/stpncpy.3:56
1267 msgid "The strings may not overlap."
1271 #: build/C/man3/stpncpy.3:59
1273 "The programmer must ensure that there is room for at least I<n> characters "
1278 #: build/C/man3/stpncpy.3:64
1280 "B<stpncpy>() returns a pointer to the terminating null byte in I<dest>, or, "
1281 "if I<dest> is not null-terminated, I<dest + n>."
1285 #: build/C/man3/stpncpy.3:66
1287 "This function was added to POSIX.1-2008. Before that, it was a GNU "
1292 #: build/C/man3/stpncpy.3:69
1293 msgid "B<strncpy>(3), B<wcpncpy>(3)"
1297 #: build/C/man3/strcasecmp.3:28
1303 #: build/C/man3/strcasecmp.3:31
1304 msgid "strcasecmp, strncasecmp - compare two strings ignoring case"
1308 #: build/C/man3/strcasecmp.3:36 build/C/man3/string.3:39
1310 msgid "B<int strcasecmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1314 #: build/C/man3/strcasecmp.3:38 build/C/man3/string.3:41
1317 "B<int strncasecmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t "
1322 #: build/C/man3/strcasecmp.3:47
1324 "The B<strcasecmp>() function compares the two strings I<s1> and I<s2>, "
1325 "ignoring the case of the characters. It returns an integer less than, equal "
1326 "to, or greater than zero if I<s1> is found, respectively, to be less than, "
1327 "to match, or be greater than I<s2>."
1331 #: build/C/man3/strcasecmp.3:52
1333 "The B<strncasecmp>() function is similar, except it only compares the first "
1334 "I<n> characters of I<s1>."
1338 #: build/C/man3/strcasecmp.3:61
1340 "The B<strcasecmp>() and B<strncasecmp>() functions return an integer less "
1341 "than, equal to, or greater than zero if I<s1> (or the first I<n> bytes "
1342 "thereof) is found, respectively, to be less than, to match, or be greater "
1347 #: build/C/man3/strcasecmp.3:63
1348 msgid "4.4BSD, POSIX.1-2001."
1352 #: build/C/man3/strcasecmp.3:72
1354 "B<bcmp>(3), B<memcmp>(3), B<strcmp>(3), B<strcoll>(3), B<string>(3), "
1355 "B<strncmp>(3), B<wcscasecmp>(3), B<wcsncasecmp>(3)"
1359 #: build/C/man3/strcat.3:30
1365 #: build/C/man3/strcat.3:33
1366 msgid "strcat, strncat - concatenate two strings"
1370 #: build/C/man3/strcat.3:38 build/C/man3/string.3:51
1372 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
1376 #: build/C/man3/strcat.3:40 build/C/man3/string.3:69
1378 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1382 #: build/C/man3/strcat.3:50
1384 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
1385 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
1386 "I<dest>, and then adds a terminating null byte. The strings may not "
1387 "overlap, and the I<dest> string must have enough space for the result."
1391 #: build/C/man3/strcat.3:54
1392 msgid "The B<strncat>() function is similar, except that"
1396 #: build/C/man3/strcat.3:54 build/C/man3/strcat.3:56 build/C/man3/strsep.3:80 build/C/man3/strsep.3:82 build/C/man3/strsep.3:84 build/C/man3/strtok.3:121 build/C/man3/strtok.3:123 build/C/man3/strtok.3:125 build/C/man3/strtok.3:127
1402 #: build/C/man3/strcat.3:56
1403 msgid "it will use at most I<n> characters from I<src>; and"
1407 #: build/C/man3/strcat.3:59
1409 "I<src> does not need to be null-terminated if it contains I<n> or more "
1414 #: build/C/man3/strcat.3:63
1416 "As with B<strcat>(), the resulting string in I<dest> is always "
1421 #: build/C/man3/strcat.3:70
1423 "If I<src> contains I<n> or more characters, B<strncat>() writes I<n+1> "
1424 "characters to I<dest> (I<n> from I<src> plus the terminating null byte). "
1425 "Therefore, the size of I<dest> must be at least I<strlen(dest)+n+1>."
1429 #: build/C/man3/strcat.3:74
1430 msgid "A simple implementation of B<strncat>() might be:"
1434 #: build/C/man3/strcat.3:82
1438 "strncat(char *dest, const char *src, size_t n)\n"
1440 " size_t dest_len = strlen(dest);\n"
1445 #: build/C/man3/strcat.3:86
1448 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
1449 " dest[dest_len + i] = src[i];\n"
1450 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
1454 #: build/C/man3/strcat.3:89 build/C/man3/strcpy.3:89
1462 #: build/C/man3/strcat.3:97
1464 "The B<strcat>() and B<strncat>() functions return a pointer to the "
1465 "resulting string I<dest>."
1469 #: build/C/man3/strcat.3:99 build/C/man3/strcmp.3:65 build/C/man3/strcoll.3:58 build/C/man3/strcpy.3:100 build/C/man3/strlen.3:48 build/C/man3/strpbrk.3:50 build/C/man3/strspn.3:65 build/C/man3/strxfrm.3:64
1470 msgid "SVr4, 4.3BSD, C89, C99."
1474 #: build/C/man3/strcat.3:108
1476 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
1477 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
1481 #: build/C/man3/strchr.3:31
1487 #: build/C/man3/strchr.3:31
1493 #: build/C/man3/strchr.3:34
1494 msgid "strchr, strrchr, strchrnul - locate character in string"
1498 #: build/C/man3/strchr.3:39 build/C/man3/string.3:53
1500 msgid "B<char *strchr(const char *>I<s>B<, int >I<c>B<);>\n"
1504 #: build/C/man3/strchr.3:41 build/C/man3/string.3:77
1506 msgid "B<char *strrchr(const char *>I<s>B<, int >I<c>B<);>\n"
1510 #: build/C/man3/strchr.3:46
1512 msgid "B<char *strchrnul(const char *>I<s>B<, int >I<c>B<);>\n"
1516 #: build/C/man3/strchr.3:55
1518 "The B<strchr>() function returns a pointer to the first occurrence of the "
1519 "character I<c> in the string I<s>."
1523 #: build/C/man3/strchr.3:63
1525 "The B<strrchr>() function returns a pointer to the last occurrence of the "
1526 "character I<c> in the string I<s>."
1530 #: build/C/man3/strchr.3:76
1532 "The B<strchrnul>() function is like B<strchr>() except that if I<c> is not "
1533 "found in I<s>, then it returns a pointer to the null byte at the end of "
1534 "I<s>, rather than NULL."
1538 #: build/C/man3/strchr.3:79
1540 "Here \"character\" means \"byte\"; these functions do not work with wide or "
1541 "multibyte characters."
1545 #: build/C/man3/strchr.3:91
1547 "The B<strchr>() and B<strrchr>() functions return a pointer to the matched "
1548 "character or NULL if the character is not found. The terminating null byte "
1549 "is considered part of the string, so that if I<c> is specified as "
1550 "\\(aq\\e0\\(aq, these functions return a pointer to the terminator."
1554 #: build/C/man3/strchr.3:99
1556 "The B<strchrnul>() function returns a pointer to the matched character, or "
1557 "a pointer to the null byte at the end of I<s> (i.e., I<s+strlen(s)>) if the "
1558 "character is not found."
1562 #: build/C/man3/strchr.3:102
1563 msgid "B<strchrnul>() first appeared in glibc in version 2.1.1."
1567 #: build/C/man3/strchr.3:109
1569 "B<strchr>() and B<strrchr>() are in SVr4, 4.3BSD, C89, C99. "
1570 "B<strchrnul>() is a GNU extension."
1574 #: build/C/man3/strchr.3:122
1576 "B<index>(3), B<memchr>(3), B<rindex>(3), B<string>(3), B<strlen>(3), "
1577 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), "
1578 "B<wcschr>(3), B<wcsrchr>(3)"
1582 #: build/C/man3/strcmp.3:30
1588 #: build/C/man3/strcmp.3:33
1589 msgid "strcmp, strncmp - compare two strings"
1593 #: build/C/man3/strcmp.3:38 build/C/man3/string.3:55
1595 msgid "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1599 #: build/C/man3/strcmp.3:40 build/C/man3/string.3:71
1602 "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t "
1607 #: build/C/man3/strcmp.3:49
1609 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. It "
1610 "returns an integer less than, equal to, or greater than zero if I<s1> is "
1611 "found, respectively, to be less than, to match, or be greater than I<s2>."
1615 #: build/C/man3/strcmp.3:54
1617 "The B<strncmp>() function is similar, except it only compares the first (at "
1618 "most) I<n> characters of I<s1> and I<s2>."
1622 #: build/C/man3/strcmp.3:63
1624 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
1625 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
1626 "found, respectively, to be less than, to match, or be greater than I<s2>."
1630 #: build/C/man3/strcmp.3:75
1632 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
1633 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
1637 #: build/C/man3/strcoll.3:28
1643 #: build/C/man3/strcoll.3:31
1644 msgid "strcoll - compare two strings using the current locale"
1648 #: build/C/man3/strcoll.3:36 build/C/man3/string.3:57
1650 msgid "B<int strcoll(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1654 #: build/C/man3/strcoll.3:49
1656 "The B<strcoll>() function compares the two strings I<s1> and I<s2>. It "
1657 "returns an integer less than, equal to, or greater than zero if I<s1> is "
1658 "found, respectively, to be less than, to match, or be greater than I<s2>. "
1659 "The comparison is based on strings interpreted as appropriate for the "
1660 "program's current locale for category B<LC_COLLATE>. (See B<setlocale>(3).)"
1664 #: build/C/man3/strcoll.3:56
1666 "The B<strcoll>() function returns an integer less than, equal to, or "
1667 "greater than zero if I<s1> is found, respectively, to be less than, to "
1668 "match, or be greater than I<s2>, when both are interpreted as appropriate "
1669 "for the current locale."
1673 #: build/C/man3/strcoll.3:63
1675 "In the I<\"POSIX\"> or I<\"C\"> locales B<strcoll>() is equivalent to "
1680 #: build/C/man3/strcoll.3:71
1682 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
1683 "B<string>(3), B<strxfrm>(3)"
1687 #: build/C/man3/strcpy.3:33
1693 #: build/C/man3/strcpy.3:36
1694 msgid "strcpy, strncpy - copy a string"
1698 #: build/C/man3/strcpy.3:41 build/C/man3/string.3:59
1700 msgid "B<char *strcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1704 #: build/C/man3/strcpy.3:43 build/C/man3/string.3:73
1706 msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1710 #: build/C/man3/strcpy.3:52
1712 "The B<strcpy>() function copies the string pointed to by I<src>, including "
1713 "the terminating null byte (\\(aq\\e0\\(aq), to the buffer pointed to by "
1714 "I<dest>. The strings may not overlap, and the destination string I<dest> "
1715 "must be large enough to receive the copy."
1719 #: build/C/man3/strcpy.3:61
1721 "The B<strncpy>() function is similar, except that at most I<n> bytes of "
1722 "I<src> are copied. B<Warning>: If there is no null byte among the first "
1723 "I<n> bytes of I<src>, the string placed in I<dest> will not be "
1728 #: build/C/man3/strcpy.3:70
1730 "If the length of I<src> is less than I<n>, B<strncpy>() pads the remainder "
1731 "of I<dest> with null bytes."
1735 #: build/C/man3/strcpy.3:74
1736 msgid "A simple implementation of B<strncpy>() might be:"
1740 #: build/C/man3/strcpy.3:81
1744 "strncpy(char *dest, const char *src, size_t n)\n"
1750 #: build/C/man3/strcpy.3:86
1753 " for (i = 0; i E<lt> n && src[i] != \\(aq\\e0\\(aq; i++)\n"
1754 " dest[i] = src[i];\n"
1755 " for ( ; i E<lt> n; i++)\n"
1756 " dest[i] = \\(aq\\e0\\(aq;\n"
1760 #: build/C/man3/strcpy.3:98
1762 "The B<strcpy>() and B<strncpy>() functions return a pointer to the "
1763 "destination string I<dest>."
1767 #: build/C/man3/strcpy.3:109
1769 "Some programmers consider B<strncpy>() to be inefficient and error prone. "
1770 "If the programmer knows (i.e., includes code to test!) that the size of "
1771 "I<dest> is greater than the length of I<src>, then B<strcpy>() can be used."
1775 #: build/C/man3/strcpy.3:116
1777 "If there is no terminating null byte in the first I<n> characters of I<src>, "
1778 "B<strncpy>() produces an unterminated string in I<dest>. Programmers often "
1779 "prevent this mistake by forcing termination as follows:"
1783 #: build/C/man3/strcpy.3:122
1786 "strncpy(buf, str, n);\n"
1788 " buf[n - 1]= \\(aq\\e0\\(aq;\n"
1792 #: build/C/man3/strcpy.3:135
1794 "If the destination string of a B<strcpy>() is not large enough, then "
1795 "anything might happen. Overflowing fixed-length string buffers is a "
1796 "favorite cracker technique for taking complete control of the machine. Any "
1797 "time a program reads or copies data into a buffer, the program first needs "
1798 "to check that there's enough space. This may be unnecessary if you can show "
1799 "that overflow is impossible, but be careful: programs can get changed over "
1800 "time, in ways that may make the impossible possible."
1804 #: build/C/man3/strcpy.3:146
1806 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpcpy>(3), "
1807 "B<stpncpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<wcsncpy>(3)"
1811 #: build/C/man3/strdup.3:29
1817 #: build/C/man3/strdup.3:29
1823 #: build/C/man3/strdup.3:32
1824 msgid "strdup, strndup, strdupa, strndupa - duplicate a string"
1828 #: build/C/man3/strdup.3:37 build/C/man3/string.3:63
1830 msgid "B<char *strdup(const char *>I<s>B<);>\n"
1834 #: build/C/man3/strdup.3:39
1836 msgid "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
1840 #: build/C/man3/strdup.3:41
1842 msgid "B<char *strdupa(const char *>I<s>B<);>\n"
1846 #: build/C/man3/strdup.3:43
1848 msgid "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
1852 #: build/C/man3/strdup.3:53
1853 msgid "B<strdup>():"
1857 #: build/C/man3/strdup.3:56
1859 "_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
1860 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
1864 #: build/C/man3/strdup.3:58
1865 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
1869 #: build/C/man3/strdup.3:61
1870 msgid "B<strndup>():"
1874 #: build/C/man3/strdup.3:65
1875 msgid "POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700"
1879 #: build/C/man3/strdup.3:73
1880 msgid "B<strdupa>(), B<strndupa>(): _GNU_SOURCE"
1884 #: build/C/man3/strdup.3:85
1886 "The B<strdup>() function returns a pointer to a new string which is a "
1887 "duplicate of the string I<s>. Memory for the new string is obtained with "
1888 "B<malloc>(3), and can be freed with B<free>(3)."
1892 #: build/C/man3/strdup.3:92
1894 "The B<strndup>() function is similar, but only copies at most I<n> "
1895 "characters. If I<s> is longer than I<n>, only I<n> characters are copied, "
1896 "and a terminating null byte (\\(aq\\e0\\(aq) is added."
1900 #: build/C/man3/strdup.3:102
1902 "B<strdupa>() and B<strndupa>() are similar, but use B<alloca>(3) to "
1903 "allocate the buffer. They are only available when using the GNU GCC suite, "
1904 "and suffer from the same limitations described in B<alloca>(3)."
1908 #: build/C/man3/strdup.3:107
1910 "The B<strdup>() function returns a pointer to the duplicated string, or "
1911 "NULL if insufficient memory was available."
1915 #: build/C/man3/strdup.3:107 build/C/man3/strerror.3:164
1921 #: build/C/man3/strdup.3:108
1927 #: build/C/man3/strdup.3:111
1928 msgid "Insufficient memory available to allocate duplicate string."
1931 #. 4.3BSD-Reno, not (first) 4.3BSD.
1933 #: build/C/man3/strdup.3:121
1935 "B<strdup>() conforms to SVr4, 4.3BSD, POSIX.1-2001. B<strndup>() conforms "
1936 "to POSIX.1-2008. B<strdupa>() and B<strndupa>() are GNU extensions."
1940 #: build/C/man3/strdup.3:129
1942 "B<alloca>(3), B<calloc>(3), B<free>(3), B<malloc>(3), B<realloc>(3), "
1943 "B<string>(3), B<wcsdup>(3)"
1947 #: build/C/man3/strerror.3:37
1953 #: build/C/man3/strerror.3:37
1959 #: build/C/man3/strerror.3:40
1960 msgid "strerror, strerror_r - return string describing error number"
1964 #: build/C/man3/strerror.3:45
1966 msgid "B<char *strerror(int >I<errnum>B<);>\n"
1970 #: build/C/man3/strerror.3:48
1973 "B<int strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
1974 " /* XSI-compliant */\n"
1978 #: build/C/man3/strerror.3:51
1981 "B<char *strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t "
1983 " /* GNU-specific */\n"
1987 #: build/C/man3/strerror.3:61
1988 msgid "The XSI-compliant version of B<strerror_r>() is provided if:"
1992 #: build/C/man3/strerror.3:63
1994 "(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600) && !\\ "
1999 #: build/C/man3/strerror.3:65
2000 msgid "Otherwise, the GNU-specific version is provided."
2004 #: build/C/man3/strerror.3:85
2006 "The B<strerror>() function returns a pointer to a string that describes the "
2007 "error code passed in the argument I<errnum>, possibly using the "
2008 "B<LC_MESSAGES> part of the current locale to select the appropriate "
2009 "language. (For example, if I<errnum> is B<EINVAL>, the returned description "
2010 "will \"Invalid argument\".) This string must not be modified by the "
2011 "application, but may be modified by a subsequent call to B<strerror>(). No "
2012 "library function, including B<perror>(3), will modify this string."
2016 #: build/C/man3/strerror.3:106
2018 "The B<strerror_r>() function is similar to B<strerror>(), but is thread "
2019 "safe. This function is available in two versions: an XSI-compliant version "
2020 "specified in POSIX.1-2001 (available since glibc 2.3.4, but not "
2021 "POSIX-compliant until glibc 2.13), and a GNU-specific version (available "
2022 "since glibc 2.0). The XSI-compliant version is provided with the feature "
2023 "test macros settings shown in the SYNOPSIS; otherwise the GNU-specific "
2024 "version is provided. If no feature test macros are explicitly defined, then "
2025 "(since glibc 2.4) B<_POSIX_SOURCE> is defined by default with the value "
2026 "200112L, so that the XSI-compliant version of B<strerror_r>() is provided "
2031 #: build/C/man3/strerror.3:114
2033 "The XSI-compliant B<strerror_r>() is preferred for portable applications. "
2034 "It returns the error string in the user-supplied buffer I<buf> of length "
2039 #: build/C/man3/strerror.3:134
2041 "The GNU-specific B<strerror_r>() returns a pointer to a string containing "
2042 "the error message. This may be either a pointer to a string that the "
2043 "function stores in I<buf>, or a pointer to some (immutable) static string "
2044 "(in which case I<buf> is unused). If the function stores a string in "
2045 "I<buf>, then at most I<buflen> bytes are stored (the string may be truncated "
2046 "if I<buflen> is too small and I<errnum> is unknown). The string always "
2047 "includes a terminating null byte."
2051 #: build/C/man3/strerror.3:142
2053 "The B<strerror>() and the GNU-specific B<strerror_r>() functions return "
2054 "the appropriate error description string, or an \"Unknown error nnn\" "
2055 "message if the error number is unknown."
2059 #: build/C/man3/strerror.3:155
2061 "POSIX.1-2001 and POSIX.1-2008 require that a successful call to "
2062 "B<strerror>(3) shall leave I<errno> unchanged, and note that, since no "
2063 "function return value is reserved to indicate an error, an application that "
2064 "wishes to check for errors should initialize I<errno> to zero before the "
2065 "call, and then check I<errno> after the call."
2069 #: build/C/man3/strerror.3:164
2071 "The XSI-compliant B<strerror_r>() function returns 0 on success. On error, "
2072 "a (positive) error number is returned (since glibc 2.13), or -1 is returned "
2073 "and I<errno> is set to indicate the error (glibc versions before 2.13)."
2077 #: build/C/man3/strerror.3:165
2083 #: build/C/man3/strerror.3:170
2084 msgid "The value of I<errnum> is not a valid error number."
2088 #: build/C/man3/strerror.3:170
2094 #: build/C/man3/strerror.3:173
2095 msgid "Insufficient storage was supplied to contain the error description string."
2099 #: build/C/man3/strerror.3:178
2101 "B<strerror>() is specified by POSIX.1-2001, C89, C99. B<strerror_r>() is "
2102 "specified by POSIX.1-2001."
2106 #: build/C/man3/strerror.3:182
2107 msgid "The GNU-specific B<strerror_r>() function is a nonstandard extension."
2110 #. e.g., Solaris 8, HP-UX 11
2111 #. e.g., FreeBSD 5.4, Tru64 5.1B
2113 #: build/C/man3/strerror.3:202
2115 "POSIX.1-2001 permits B<strerror>() to set I<errno> if the call encounters "
2116 "an error, but does not specify what value should be returned as the function "
2117 "result in the event of an error. On some systems, B<strerror>() returns "
2118 "NULL if the error number is unknown. On other systems, B<strerror>() "
2119 "returns a string something like \"Error nnn occurred\" and sets I<errno> to "
2120 "B<EINVAL> if the error number is unknown. C99 and POSIX.1-2008 require the "
2121 "return value to be non-NULL."
2125 #: build/C/man3/strerror.3:208
2126 msgid "B<err>(3), B<errno>(3), B<error>(3), B<perror>(3), B<strsignal>(3)"
2130 #: build/C/man3/strfry.3:28
2136 #: build/C/man3/strfry.3:31
2137 msgid "strfry - randomize a string"
2141 #: build/C/man3/strfry.3:38 build/C/man3/string.3:65
2143 msgid "B<char *strfry(char *>I<string>B<);>\n"
2147 #: build/C/man3/strfry.3:47
2149 "The B<strfry>() function randomizes the contents of I<string> by using "
2150 "B<rand>(3) to randomly swap characters in the string. The result is an "
2151 "anagram of I<string>."
2155 #: build/C/man3/strfry.3:52
2156 msgid "The B<strfry>() functions returns a pointer to the randomized string."
2160 #: build/C/man3/strfry.3:57
2161 msgid "The B<strfry>() function is unique to the GNU C Library."
2165 #: build/C/man3/strfry.3:60
2166 msgid "B<memfrob>(3), B<string>(3)"
2170 #: build/C/man3/string.3:28
2176 #: build/C/man3/string.3:28
2182 #: build/C/man3/string.3:34
2184 "stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, "
2185 "strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, "
2186 "strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex - string "
2191 #: build/C/man3/string.3:61 build/C/man3/strspn.3:38
2193 msgid "B<size_t strcspn(const char *>I<s>B<, const char *>I<reject>B<);>\n"
2197 #: build/C/man3/string.3:67 build/C/man3/strlen.3:36
2199 msgid "B<size_t strlen(const char *>I<s>B<);>\n"
2203 #: build/C/man3/string.3:75 build/C/man3/strpbrk.3:36
2205 msgid "B<char *strpbrk(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2209 #: build/C/man3/string.3:79 build/C/man3/strsep.3:39
2211 msgid "B<char *strsep(char **>I<stringp>B<, const char *>I<delim>B<);>\n"
2215 #: build/C/man3/string.3:81 build/C/man3/strspn.3:36
2217 msgid "B<size_t strspn(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2221 #: build/C/man3/string.3:83 build/C/man3/strstr.3:39
2223 msgid "B<char *strstr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
2227 #: build/C/man3/string.3:85
2229 msgid "B<char *strtok(char *>I<s>B<, const char *>I<delim>B<);>\n"
2233 #: build/C/man3/string.3:87 build/C/man3/strxfrm.3:36
2236 "B<size_t strxfrm(char *>I<dest>B<, const char *>I<src>B<, size_t "
2241 #: build/C/man3/string.3:92
2243 "The string functions perform string operations on null-terminated strings. "
2244 "See the individual man pages for descriptions of each function."
2248 #: build/C/man3/string.3:117
2250 "B<index>(3), B<rindex>(3), B<stpcpy>(3), B<strcasecmp>(3), B<strcat>(3), "
2251 "B<strchr>(3), B<strcmp>(3), B<strcoll>(3), B<strcpy>(3), B<strcspn>(3), "
2252 "B<strdup>(3), B<strfry>(3), B<strlen>(3), B<strncasecmp>(3), B<strncat>(3), "
2253 "B<strncmp>(3), B<strncpy>(3), B<strpbrk>(3), B<strrchr>(3), B<strsep>(3), "
2254 "B<strspn>(3), B<strstr>(3), B<strtok>(3), B<strxfrm>(3)"
2258 #: build/C/man3/strlen.3:28
2264 #: build/C/man3/strlen.3:31
2265 msgid "strlen - calculate the length of a string"
2269 #: build/C/man3/strlen.3:42
2271 "The B<strlen>() function calculates the length of the string I<s>, "
2272 "excluding the terminating null byte (\\(aq\\e0\\(aq)."
2276 #: build/C/man3/strlen.3:46
2277 msgid "The B<strlen>() function returns the number of characters in I<s>."
2281 #: build/C/man3/strlen.3:53
2282 msgid "B<string>(3), B<strnlen>(3), B<wcslen>(3), B<wcsnlen>(3)"
2286 #: build/C/man3/strnlen.3:11
2292 #: build/C/man3/strnlen.3:14
2293 msgid "strnlen - determine the length of a fixed-size string"
2297 #: build/C/man3/strnlen.3:19
2299 msgid "B<size_t strnlen(const char *>I<s>B<, size_t >I<maxlen>B<);>\n"
2303 #: build/C/man3/strnlen.3:27
2304 msgid "B<strnlen>():"
2308 #: build/C/man3/strnlen.3:49
2310 "The B<strnlen>() function returns the number of characters in the string "
2311 "pointed to by I<s>, excluding the terminating null bye (\\(aq\\e0\\(aq), but "
2312 "at most I<maxlen>. In doing this, B<strnlen>() looks only at the first "
2313 "I<maxlen> characters at I<s> and never beyond I<s+maxlen>."
2317 #: build/C/man3/strnlen.3:56
2319 "The B<strnlen>() function returns I<strlen(s)>, if that is less than "
2320 "I<maxlen>, or I<maxlen> if there is no null byte (\\(aq\\e0\\(aq) among the "
2321 "first I<maxlen> characters pointed to by I<s>."
2325 #: build/C/man3/strnlen.3:58
2326 msgid "POSIX.1-2008."
2330 #: build/C/man3/strnlen.3:60
2331 msgid "B<strlen>(3)"
2335 #: build/C/man3/strpbrk.3:28
2341 #: build/C/man3/strpbrk.3:31
2342 msgid "strpbrk - search a string for any of a set of characters"
2346 #: build/C/man3/strpbrk.3:42
2348 "The B<strpbrk>() function locates the first occurrence in the string I<s> "
2349 "of any of the characters in the string I<accept>."
2353 #: build/C/man3/strpbrk.3:48
2355 "The B<strpbrk>() function returns a pointer to the character in I<s> that "
2356 "matches one of the characters in I<accept>, or NULL if no such character is "
2361 #: build/C/man3/strpbrk.3:61
2363 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2364 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), B<wcspbrk>(3)"
2368 #: build/C/man3/strsep.3:31
2374 #: build/C/man3/strsep.3:34
2375 msgid "strsep - extract token from string"
2379 #: build/C/man3/strsep.3:48
2380 msgid "B<strsep>(): _BSD_SOURCE"
2384 #: build/C/man3/strsep.3:61
2386 "If I<*stringp> is NULL, the B<strsep>() function returns NULL and does "
2387 "nothing else. Otherwise, this function finds the first token in the string "
2388 "I<*stringp>, where tokens are delimited by symbols in the string I<delim>. "
2389 "This token is terminated by overwriting the delimiter with a null byte "
2390 "(\\(aq\\e0\\(aq) and I<*stringp> is updated to point past the token. In "
2391 "case no delimiter was found, the token is taken to be the entire string "
2392 "I<*stringp>, and I<*stringp> is made NULL."
2396 #: build/C/man3/strsep.3:66
2398 "The B<strsep>() function returns a pointer to the token, that is, it "
2399 "returns the original value of I<*stringp>."
2403 #: build/C/man3/strsep.3:68
2408 #: build/C/man3/strsep.3:77
2410 "The B<strsep>() function was introduced as a replacement for B<strtok>(3), "
2411 "since the latter cannot handle empty fields. However, B<strtok>(3) "
2412 "conforms to C89/C99 and hence is more portable."
2416 #: build/C/man3/strsep.3:80
2417 msgid "Be cautious when using this function. If you do use it, note that:"
2421 #: build/C/man3/strsep.3:82
2422 msgid "This function modifies its first argument."
2426 #: build/C/man3/strsep.3:84
2427 msgid "This function cannot be used on constant strings."
2431 #: build/C/man3/strsep.3:86 build/C/man3/strtok.3:127
2432 msgid "The identity of the delimiting character is lost."
2436 #: build/C/man3/strsep.3:96
2438 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2439 "B<strpbrk>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
2443 #: build/C/man3/strsignal.3:28
2449 #: build/C/man3/strsignal.3:28
2455 #: build/C/man3/strsignal.3:31
2456 msgid "strsignal - return string describing signal"
2460 #: build/C/man3/strsignal.3:36
2462 msgid "B<char *strsignal(int >I<sig>B<);>\n"
2466 #: build/C/man3/strsignal.3:38
2468 msgid "B<extern const char * const >I<sys_siglist>B<[];>\n"
2472 #: build/C/man3/strsignal.3:46
2473 msgid "B<strsignal>():"
2477 #: build/C/man3/strsignal.3:66
2479 "The B<strsignal>() function returns a string describing the signal number "
2480 "passed in the argument I<sig>. The string can only be used until the next "
2481 "call to B<strsignal>()."
2485 #: build/C/man3/strsignal.3:73
2487 "The array I<sys_siglist> holds the signal description strings indexed by "
2488 "signal number. The B<strsignal>() function should be used if possible "
2489 "instead of this array."
2493 #: build/C/man3/strsignal.3:80
2495 "The B<strsignal>() function returns the appropriate description string, or "
2496 "an unknown signal message if the signal number is invalid. On some systems "
2497 "(but not on Linux), a NULL pointer may be returned instead for an invalid "
2502 #: build/C/man3/strsignal.3:83
2503 msgid "POSIX.1-2008. Present on Solaris and the BSDs."
2507 #: build/C/man3/strsignal.3:86
2508 msgid "B<psignal>(3), B<strerror>(3)"
2512 #: build/C/man3/strspn.3:28
2518 #: build/C/man3/strspn.3:31
2519 msgid "strspn, strcspn - search a string for a set of characters"
2523 #: build/C/man3/strspn.3:45
2525 "The B<strspn>() function calculates the length of the initial segment of "
2526 "I<s> which consists entirely of characters in I<accept>."
2530 #: build/C/man3/strspn.3:51
2532 "The B<strcspn>() function calculates the length of the initial segment of "
2533 "I<s> which consists entirely of characters not in I<reject>."
2537 #: build/C/man3/strspn.3:57
2539 "The B<strspn>() function returns the number of characters in the initial "
2540 "segment of I<s> which consist only of characters from I<accept>."
2544 #: build/C/man3/strspn.3:63
2546 "The B<strcspn>() function returns the number of characters in the initial "
2547 "segment of I<s> which are not in the string I<reject>."
2551 #: build/C/man3/strspn.3:77
2553 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2554 "B<strpbrk>(3), B<strsep>(3), B<strstr>(3), B<strtok>(3), B<wcscspn>(3), "
2559 #: build/C/man3/strstr.3:31
2565 #: build/C/man3/strstr.3:34
2566 msgid "strstr, strcasestr - locate a substring"
2570 #: build/C/man3/strstr.3:45
2572 msgid "B<char *strcasestr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
2576 #: build/C/man3/strstr.3:52
2578 "The B<strstr>() function finds the first occurrence of the substring "
2579 "I<needle> in the string I<haystack>. The terminating null bytes "
2580 "(\\(aq\\e0\\(aq) are not compared."
2584 #: build/C/man3/strstr.3:58
2586 "The B<strcasestr>() function is like B<strstr>(), but ignores the case of "
2591 #: build/C/man3/strstr.3:61
2593 "These functions return a pointer to the beginning of the substring, or NULL "
2594 "if the substring is not found."
2598 #: build/C/man3/strstr.3:68
2600 "The B<strstr>() function conforms to C89 and C99. The B<strcasestr>() "
2601 "function is a nonstandard extension."
2605 #: build/C/man3/strstr.3:74
2607 "Early versions of Linux libc (like 4.5.26) would not allow an empty "
2608 "I<needle> argument for B<strstr>(). Later versions (like 4.6.27) work "
2609 "correctly, and return I<haystack> when I<needle> is empty."
2613 #: build/C/man3/strstr.3:86
2615 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strcasecmp>(3), B<strchr>(3), "
2616 "B<string>(3), B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strtok>(3), "
2621 #: build/C/man3/strtok.3:28
2627 #: build/C/man3/strtok.3:28
2633 #: build/C/man3/strtok.3:31
2634 msgid "strtok, strtok_r - extract tokens from strings"
2638 #: build/C/man3/strtok.3:36
2640 msgid "B<char *strtok(char *>I<str>B<, const char *>I<delim>B<);>\n"
2644 #: build/C/man3/strtok.3:38
2647 "B<char *strtok_r(char *>I<str>B<, const char *>I<delim>B<, char "
2648 "**>I<saveptr>B<);>\n"
2652 #: build/C/man3/strtok.3:49
2654 "B<strtok_r>(): _SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 1 "
2655 "|| _XOPEN_SOURCE || _POSIX_SOURCE"
2659 #: build/C/man3/strtok.3:60
2661 "The B<strtok>() function parses a string into a sequence of tokens. On the "
2662 "first call to B<strtok>() the string to be parsed should be specified in "
2663 "I<str>. In each subsequent call that should parse the same string, I<str> "
2668 #: build/C/man3/strtok.3:65
2670 "The I<delim> argument specifies a set of characters that delimit the tokens "
2671 "in the parsed string. The caller may specify different strings in I<delim> "
2672 "in successive calls that parse the same string."
2676 #: build/C/man3/strtok.3:74
2678 "Each call to B<strtok>() returns a pointer to a null-terminated string "
2679 "containing the next token. This string does not include the delimiting "
2680 "character. If no more tokens are found, B<strtok>() returns NULL."
2684 #: build/C/man3/strtok.3:81
2686 "A sequence of two or more contiguous delimiter characters in the parsed "
2687 "string is considered to be a single delimiter. Delimiter characters at the "
2688 "start or end of the string are ignored. Put another way: the tokens "
2689 "returned by B<strtok>() are always nonempty strings."
2693 #: build/C/man3/strtok.3:91
2695 "The B<strtok_r>() function is a reentrant version B<strtok>(). The "
2696 "I<saveptr> argument is a pointer to a I<char *> variable that is used "
2697 "internally by B<strtok_r>() in order to maintain context between successive "
2698 "calls that parse the same string."
2702 #: build/C/man3/strtok.3:100
2704 "On the first call to B<strtok_r>(), I<str> should point to the string to be "
2705 "parsed, and the value of I<saveptr> is ignored. In subsequent calls, I<str> "
2706 "should be NULL, and I<saveptr> should be unchanged since the previous call."
2710 #: build/C/man3/strtok.3:104
2712 "Different strings may be parsed concurrently using sequences of calls to "
2713 "B<strtok_r>() that specify different I<saveptr> arguments."
2717 #: build/C/man3/strtok.3:111
2719 "The B<strtok>() and B<strtok_r>() functions return a pointer to the next "
2720 "token, or NULL if there are no more tokens."
2724 #: build/C/man3/strtok.3:112
2730 #: build/C/man3/strtok.3:115
2731 msgid "SVr4, POSIX.1-2001, 4.3BSD, C89, C99."
2735 #: build/C/man3/strtok.3:115
2737 msgid "B<strtok_r>()"
2741 #: build/C/man3/strtok.3:118
2742 msgid "POSIX.1-2001."
2746 #: build/C/man3/strtok.3:121
2747 msgid "Be cautious when using these functions. If you do use them, note that:"
2751 #: build/C/man3/strtok.3:123
2752 msgid "These functions modify their first argument."
2756 #: build/C/man3/strtok.3:125
2757 msgid "These functions cannot be used on constant strings."
2761 #: build/C/man3/strtok.3:134
2763 "The B<strtok>() function uses a static buffer while parsing, so it's not "
2764 "thread safe. Use B<strtok_r>() if this matters to you."
2768 #: build/C/man3/strtok.3:143
2770 "The program below uses nested loops that employ B<strtok_r>() to break a "
2771 "string into a two-level hierarchy of tokens. The first command-line "
2772 "argument specifies the string to be parsed. The second argument specifies "
2773 "the delimiter character(s) to be used to separate that string into "
2774 "\"major\" tokens. The third argument specifies the delimiter character(s) "
2775 "to be used to separate the \"major\" tokens into subtokens."
2779 #: build/C/man3/strtok.3:145
2780 msgid "An example of the output produced by this program is the following:"
2784 #: build/C/man3/strtok.3:157
2787 "$B< ./a.out \\(aqa/bbb///cc;xxx:yyy:\\(aq \\(aq:;\\(aq \\(aq/\\(aq>\n"
2799 #: build/C/man3/strtok.3:159
2801 msgid "Program source"
2805 #: build/C/man3/strtok.3:165
2808 "#include E<lt>stdio.hE<gt>\n"
2809 "#include E<lt>stdlib.hE<gt>\n"
2810 "#include E<lt>string.hE<gt>\n"
2814 #: build/C/man3/strtok.3:172
2818 "main(int argc, char *argv[])\n"
2820 " char *str1, *str2, *token, *subtoken;\n"
2821 " char *saveptr1, *saveptr2;\n"
2826 #: build/C/man3/strtok.3:178
2829 " if (argc != 4) {\n"
2830 " fprintf(stderr, \"Usage: %s string delim subdelim\\en\",\n"
2832 " exit(EXIT_FAILURE);\n"
2837 #: build/C/man3/strtok.3:184
2840 " for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) {\n"
2841 " token = strtok_r(str1, argv[2], &saveptr1);\n"
2842 " if (token == NULL)\n"
2844 " printf(\"%d: %s\\en\", j, token);\n"
2848 #: build/C/man3/strtok.3:192
2851 " for (str2 = token; ; str2 = NULL) {\n"
2852 " subtoken = strtok_r(str2, argv[3], &saveptr2);\n"
2853 " if (subtoken == NULL)\n"
2855 " printf(\"\\t --E<gt> %s\\en\", subtoken);\n"
2861 #: build/C/man3/strtok.3:195
2864 " exit(EXIT_SUCCESS);\n"
2869 #: build/C/man3/strtok.3:201
2871 "Another example program using B<strtok>() can be found in "
2872 "B<getaddrinfo_a>(3)."
2876 #: build/C/man3/strtok.3:212
2878 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
2879 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
2883 #: build/C/man3/strverscmp.3:23
2889 #: build/C/man3/strverscmp.3:23
2895 #: build/C/man3/strverscmp.3:26
2896 msgid "strverscmp - compare two version strings"
2900 #: build/C/man3/strverscmp.3:33
2902 msgid "B<int strverscmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
2905 #. classical solution: "rename jan jan0 jan?"
2907 #: build/C/man3/strverscmp.3:50
2909 "Often one has files I<jan1>, I<jan2>, ..., I<jan9>, I<jan10>, ... and it "
2910 "feels wrong when B<ls>(1) orders them I<jan1>, I<jan10>, ..., I<jan2>, ..., "
2911 "I<jan9>. In order to rectify this, GNU introduced the I<-v> option to "
2912 "B<ls>(1), which is implemented using B<versionsort>(3), which again uses "
2917 #: build/C/man3/strverscmp.3:61
2919 "Thus, the task of B<strverscmp>() is to compare two strings and find the "
2920 "\"right\" order, while B<strcmp>(3) only finds the lexicographic order. "
2921 "This function does not use the locale category B<LC_COLLATE>, so is meant "
2922 "mostly for situations where the strings are expected to be in ASCII."
2926 #: build/C/man3/strverscmp.3:79
2928 "What this function does is the following. If both strings are equal, return "
2929 "0. Otherwise find the position between two bytes with the property that "
2930 "before it both strings are equal, while directly after it there is a "
2931 "difference. Find the largest consecutive digit strings containing (or "
2932 "starting at, or ending at) this position. If one or both of these is empty, "
2933 "then return what B<strcmp>(3) would have returned (numerical ordering of "
2934 "byte values). Otherwise, compare both digit strings numerically, where "
2935 "digit strings with one or more leading zeros are interpreted as if they have "
2936 "a decimal point in front (so that in particular digit strings with more "
2937 "leading zeros come before digit strings with fewer leading zeros). Thus, "
2938 "the ordering is I<000>, I<00>, I<01>, I<010>, I<09>, I<0>, I<1>, I<9>, "
2943 #: build/C/man3/strverscmp.3:86
2945 "The B<strverscmp>() function returns an integer less than, equal to, or "
2946 "greater than zero if I<s1> is found, respectively, to be earlier than, equal "
2947 "to, or later than I<s2>."
2951 #: build/C/man3/strverscmp.3:93
2952 msgid "B<rename>(1), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3)"
2956 #: build/C/man3/strxfrm.3:28
2962 #: build/C/man3/strxfrm.3:31
2963 msgid "strxfrm - string transformation"
2967 #: build/C/man3/strxfrm.3:54
2969 "The B<strxfrm>() function transforms the I<src> string into a form such "
2970 "that the result of B<strcmp>(3) on two strings that have been transformed "
2971 "with B<strxfrm>() is the same as the result of B<strcoll>(3) on the two "
2972 "strings before their transformation. The first I<n> characters of the "
2973 "transformed string are placed in I<dest>. The transformation is based on "
2974 "the program's current locale for category B<LC_COLLATE>. (See "
2979 #: build/C/man3/strxfrm.3:62
2981 "The B<strxfrm>() function returns the number of bytes required to store the "
2982 "transformed string in I<dest> excluding the terminating null byte "
2983 "(\\(aq\\e0\\(aq). If the value returned is I<n> or more, the contents of "
2984 "I<dest> are indeterminate."
2988 #: build/C/man3/strxfrm.3:70
2990 "In the I<\"POSIX\"> or I<\"C\"> locales B<strxfrm>() is equivalent to "
2991 "copying the string with B<strncpy>(3)."
2995 #: build/C/man3/strxfrm.3:78
2997 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
2998 "B<strcoll>(3), B<string>(3)"