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.
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2013-03-22 01:07+0900\n"
10 "PO-Revision-Date: 2012-05-28 22:10+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
19 #: build/C/man3/bcmp.3:31
25 #: build/C/man3/bcmp.3:31 build/C/man3/bzero.3:31
31 #: build/C/man3/bcmp.3:31 build/C/man3/bcopy.3:33 build/C/man3/bzero.3:31
37 #: build/C/man3/bcmp.3:31 build/C/man3/bcopy.3:33 build/C/man3/bstring.3:32
38 #: build/C/man3/bzero.3:31 build/C/man3/ffs.3:33 build/C/man3/index.3:31
39 #: build/C/man3/memccpy.3:30 build/C/man3/memchr.3:32 build/C/man3/memcmp.3:30
40 #: build/C/man3/memcpy.3:30 build/C/man3/memfrob.3:30 build/C/man3/memmem.3:30
41 #: build/C/man3/memmove.3:30 build/C/man3/mempcpy.3:10
42 #: build/C/man3/memset.3:30 build/C/man3/stpcpy.3:25 build/C/man3/stpncpy.3:14
43 #: build/C/man3/strcasecmp.3:30 build/C/man3/strcat.3:32
44 #: build/C/man3/strchr.3:33 build/C/man3/strcmp.3:32 build/C/man3/strcoll.3:30
45 #: build/C/man3/strcpy.3:35 build/C/man3/strdup.3:31
46 #: build/C/man3/strerror.3:39 build/C/man3/strfry.3:30
47 #: build/C/man3/string.3:30 build/C/man3/strlen.3:30 build/C/man3/strnlen.3:13
48 #: build/C/man3/strpbrk.3:30 build/C/man3/strsep.3:33
49 #: build/C/man3/strsignal.3:30 build/C/man3/strspn.3:30
50 #: build/C/man3/strstr.3:33 build/C/man3/strtok.3:30
51 #: build/C/man3/strverscmp.3:25 build/C/man3/strxfrm.3:30
53 msgid "Linux Programmer's Manual"
54 msgstr "Linux Programmer's Manual"
57 #: build/C/man3/bcmp.3:32 build/C/man3/bcopy.3:34 build/C/man3/bstring.3:33
58 #: build/C/man3/bzero.3:32 build/C/man3/ffs.3:34 build/C/man3/index.3:32
59 #: build/C/man3/memccpy.3:31 build/C/man3/memchr.3:33 build/C/man3/memcmp.3:31
60 #: build/C/man3/memcpy.3:31 build/C/man3/memfrob.3:31 build/C/man3/memmem.3:31
61 #: build/C/man3/memmove.3:31 build/C/man3/mempcpy.3:11
62 #: build/C/man3/memset.3:31 build/C/man3/stpcpy.3:26 build/C/man3/stpncpy.3:15
63 #: build/C/man3/strcasecmp.3:31 build/C/man3/strcat.3:33
64 #: build/C/man3/strchr.3:34 build/C/man3/strcmp.3:33 build/C/man3/strcoll.3:31
65 #: build/C/man3/strcpy.3:36 build/C/man3/strdup.3:32
66 #: build/C/man3/strerror.3:40 build/C/man3/strfry.3:31
67 #: build/C/man3/string.3:31 build/C/man3/strlen.3:31 build/C/man3/strnlen.3:14
68 #: build/C/man3/strpbrk.3:31 build/C/man3/strsep.3:34
69 #: build/C/man3/strsignal.3:31 build/C/man3/strspn.3:31
70 #: build/C/man3/strstr.3:34 build/C/man3/strtok.3:31
71 #: build/C/man3/strverscmp.3:26 build/C/man3/strxfrm.3:31
77 #: build/C/man3/bcmp.3:34
78 msgid "bcmp - compare byte sequences"
79 msgstr "bcmp - バイト列を比較する"
82 #: build/C/man3/bcmp.3:34 build/C/man3/bcopy.3:36 build/C/man3/bstring.3:36
83 #: build/C/man3/bzero.3:34 build/C/man3/ffs.3:36 build/C/man3/index.3:34
84 #: build/C/man3/memccpy.3:33 build/C/man3/memchr.3:35 build/C/man3/memcmp.3:33
85 #: build/C/man3/memcpy.3:33 build/C/man3/memfrob.3:33 build/C/man3/memmem.3:33
86 #: build/C/man3/memmove.3:33 build/C/man3/mempcpy.3:13
87 #: build/C/man3/memset.3:33 build/C/man3/stpcpy.3:28 build/C/man3/stpncpy.3:17
88 #: build/C/man3/strcasecmp.3:33 build/C/man3/strcat.3:35
89 #: build/C/man3/strchr.3:36 build/C/man3/strcmp.3:35 build/C/man3/strcoll.3:33
90 #: build/C/man3/strcpy.3:38 build/C/man3/strdup.3:34
91 #: build/C/man3/strerror.3:42 build/C/man3/strfry.3:33
92 #: build/C/man3/string.3:36 build/C/man3/strlen.3:33 build/C/man3/strnlen.3:16
93 #: build/C/man3/strpbrk.3:33 build/C/man3/strsep.3:36
94 #: build/C/man3/strsignal.3:33 build/C/man3/strspn.3:33
95 #: build/C/man3/strstr.3:36 build/C/man3/strtok.3:33
96 #: build/C/man3/strverscmp.3:28 build/C/man3/strxfrm.3:33
102 #: build/C/man3/bcmp.3:37 build/C/man3/bcopy.3:39 build/C/man3/bzero.3:37
103 #: build/C/man3/ffs.3:39 build/C/man3/index.3:37 build/C/man3/strcasecmp.3:36
104 #: build/C/man3/string.3:39
106 msgid "B<#include E<lt>strings.hE<gt>>\n"
107 msgstr "B<#include E<lt>strings.hE<gt>>\n"
110 #: build/C/man3/bcmp.3:39
112 msgid "B<int bcmp(const void *>I<s1>B<, const void *>I<s2>B<, size_t >I<n>B<);>\n"
113 msgstr "B<int bcmp(const void *>I<s1>B<, const void *>I<s2>B<, size_t >I<n>B<);>\n"
116 #: build/C/man3/bcmp.3:40 build/C/man3/bcopy.3:42 build/C/man3/bstring.3:63
117 #: build/C/man3/bzero.3:40 build/C/man3/ffs.3:74 build/C/man3/index.3:42
118 #: build/C/man3/memccpy.3:39 build/C/man3/memchr.3:54 build/C/man3/memcmp.3:39
119 #: build/C/man3/memcpy.3:39 build/C/man3/memfrob.3:40 build/C/man3/memmem.3:41
120 #: build/C/man3/memmove.3:39 build/C/man3/mempcpy.3:27
121 #: build/C/man3/memset.3:39 build/C/man3/stpcpy.3:53 build/C/man3/stpncpy.3:42
122 #: build/C/man3/strcasecmp.3:41 build/C/man3/strcat.3:43
123 #: build/C/man3/strchr.3:49 build/C/man3/strcmp.3:43 build/C/man3/strcoll.3:39
124 #: build/C/man3/strcpy.3:46 build/C/man3/strdup.3:77
125 #: build/C/man3/strerror.3:67 build/C/man3/strfry.3:41
126 #: build/C/man3/string.3:90 build/C/man3/strlen.3:39 build/C/man3/strnlen.3:41
127 #: build/C/man3/strpbrk.3:39 build/C/man3/strsep.3:50
128 #: build/C/man3/strsignal.3:60 build/C/man3/strspn.3:41
129 #: build/C/man3/strstr.3:48 build/C/man3/strtok.3:52
130 #: build/C/man3/strverscmp.3:36 build/C/man3/strxfrm.3:39
136 #: build/C/man3/bcmp.3:56
138 "The B<bcmp>() function compares the two byte sequences I<s1> and I<s2> of "
139 "length I<n> each. If they are equal, and in particular if I<n> is zero, "
140 "B<bcmp>() returns 0. Otherwise it returns a nonzero result."
142 "B<bcmp>() は、2 つのバイト列 I<s1> と I<s2> の先頭 I<n> バイトを 比較する。"
143 "2 つが等しいか、特に I<n> が 0 の場合 B<bcmp>() は 0 を返す。 さもなければ "
147 #: build/C/man3/bcmp.3:56 build/C/man3/bcopy.3:52 build/C/man3/bzero.3:48
148 #: build/C/man3/ffs.3:87 build/C/man3/index.3:55 build/C/man3/memccpy.3:47
149 #: build/C/man3/memchr.3:105 build/C/man3/memcmp.3:45 build/C/man3/memcpy.3:48
150 #: build/C/man3/memfrob.3:53 build/C/man3/memmem.3:47
151 #: build/C/man3/memmove.3:53 build/C/man3/mempcpy.3:53
152 #: build/C/man3/memset.3:44 build/C/man3/stpcpy.3:61 build/C/man3/stpncpy.3:61
153 #: build/C/man3/strcasecmp.3:54 build/C/man3/strcat.3:97
154 #: build/C/man3/strchr.3:81 build/C/man3/strcmp.3:56 build/C/man3/strcoll.3:51
155 #: build/C/man3/strcpy.3:97 build/C/man3/strdup.3:104
156 #: build/C/man3/strerror.3:136 build/C/man3/strfry.3:49
157 #: build/C/man3/strlen.3:44 build/C/man3/strnlen.3:51
158 #: build/C/man3/strpbrk.3:44 build/C/man3/strsep.3:63
159 #: build/C/man3/strsignal.3:75 build/C/man3/strspn.3:53
160 #: build/C/man3/strstr.3:60 build/C/man3/strtok.3:106
161 #: build/C/man3/strverscmp.3:81 build/C/man3/strxfrm.3:56
167 #: build/C/man3/bcmp.3:61
169 "The B<bcmp>() function returns 0 if the byte sequences are equal, otherwise "
170 "a nonzero result is returned."
171 msgstr "バイト列が等しい場合は 0 、等しくない場合は 0 以外を返す。"
174 #: build/C/man3/bcmp.3:61 build/C/man3/bcopy.3:54 build/C/man3/bzero.3:50
175 #: build/C/man3/ffs.3:91 build/C/man3/index.3:62 build/C/man3/memccpy.3:53
176 #: build/C/man3/memchr.3:124 build/C/man3/memcmp.3:60 build/C/man3/memcpy.3:52
177 #: build/C/man3/memfrob.3:58 build/C/man3/memmem.3:52
178 #: build/C/man3/memmove.3:57 build/C/man3/mempcpy.3:58
179 #: build/C/man3/memset.3:49 build/C/man3/stpcpy.3:66 build/C/man3/stpncpy.3:66
180 #: build/C/man3/strcasecmp.3:63 build/C/man3/strcat.3:103
181 #: build/C/man3/strchr.3:104 build/C/man3/strcmp.3:65
182 #: build/C/man3/strcoll.3:58 build/C/man3/strcpy.3:104
183 #: build/C/man3/strdup.3:113 build/C/man3/strerror.3:175
184 #: build/C/man3/strfry.3:54 build/C/man3/strlen.3:48 build/C/man3/strnlen.3:58
185 #: build/C/man3/strpbrk.3:50 build/C/man3/strsep.3:68
186 #: build/C/man3/strsignal.3:82 build/C/man3/strspn.3:65
187 #: build/C/man3/strstr.3:63 build/C/man3/strtok.3:113
188 #: build/C/man3/strverscmp.3:88 build/C/man3/strxfrm.3:64
190 msgid "CONFORMING TO"
194 #: build/C/man3/bcmp.3:68
196 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
197 "B<memcmp>(3) in new programs. POSIX.1-2008 removes the specification of "
200 "4.3BSD. この関数は廃止予定である (POSIX.1-2001 では 過去の名残 (LEGACY) とさ"
201 "れている)。新しいプログラムでは B<memcmp>(3) を使うべきである。 "
202 "POSIX.1-2008 では B<bcmp>() の仕様が削除されている。"
205 #: build/C/man3/bcmp.3:68 build/C/man3/bcopy.3:68 build/C/man3/bstring.3:82
206 #: build/C/man3/bzero.3:57 build/C/man3/ffs.3:103 build/C/man3/index.3:73
207 #: build/C/man3/memccpy.3:55 build/C/man3/memchr.3:136
208 #: build/C/man3/memcmp.3:62 build/C/man3/memcpy.3:54 build/C/man3/memfrob.3:63
209 #: build/C/man3/memmem.3:65 build/C/man3/memmove.3:59
210 #: build/C/man3/mempcpy.3:71 build/C/man3/memset.3:51 build/C/man3/stpcpy.3:99
211 #: build/C/man3/stpncpy.3:68 build/C/man3/strcasecmp.3:65
212 #: build/C/man3/strcat.3:142 build/C/man3/strchr.3:111
213 #: build/C/man3/strcmp.3:67 build/C/man3/strcoll.3:65
214 #: build/C/man3/strcpy.3:194 build/C/man3/strdup.3:123
215 #: build/C/man3/strerror.3:204 build/C/man3/strfry.3:59
216 #: build/C/man3/string.3:94 build/C/man3/strlen.3:50 build/C/man3/strnlen.3:60
217 #: build/C/man3/strpbrk.3:52 build/C/man3/strsep.3:88
218 #: build/C/man3/strsignal.3:85 build/C/man3/strspn.3:67
219 #: build/C/man3/strstr.3:76 build/C/man3/strtok.3:203
220 #: build/C/man3/strverscmp.3:90 build/C/man3/strxfrm.3:72
226 #: build/C/man3/bcmp.3:75
228 "B<memcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), B<strncasecmp>"
231 "B<memcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), B<strncasecmp>"
235 #: build/C/man3/bcmp.3:75 build/C/man3/bcopy.3:74 build/C/man3/bstring.3:94
236 #: build/C/man3/bzero.3:60 build/C/man3/ffs.3:105 build/C/man3/index.3:83
237 #: build/C/man3/memccpy.3:61 build/C/man3/memchr.3:147
238 #: build/C/man3/memcmp.3:70 build/C/man3/memcpy.3:62 build/C/man3/memfrob.3:65
239 #: build/C/man3/memmem.3:67 build/C/man3/memmove.3:66
240 #: build/C/man3/mempcpy.3:76 build/C/man3/memset.3:55
241 #: build/C/man3/stpcpy.3:108 build/C/man3/stpncpy.3:71
242 #: build/C/man3/strcasecmp.3:74 build/C/man3/strcat.3:151
243 #: build/C/man3/strchr.3:124 build/C/man3/strcmp.3:77
244 #: build/C/man3/strcoll.3:73 build/C/man3/strcpy.3:205
245 #: build/C/man3/strdup.3:131 build/C/man3/strerror.3:210
246 #: build/C/man3/strfry.3:62 build/C/man3/string.3:119 build/C/man3/strlen.3:55
247 #: build/C/man3/strnlen.3:62 build/C/man3/strpbrk.3:63
248 #: build/C/man3/strsep.3:98 build/C/man3/strsignal.3:88
249 #: build/C/man3/strspn.3:79 build/C/man3/strstr.3:88 build/C/man3/strtok.3:214
250 #: build/C/man3/strverscmp.3:95 build/C/man3/strxfrm.3:80
256 #: build/C/man3/bcmp.3:82 build/C/man3/bcopy.3:81 build/C/man3/bstring.3:101
257 #: build/C/man3/bzero.3:67 build/C/man3/ffs.3:112 build/C/man3/index.3:90
258 #: build/C/man3/memccpy.3:68 build/C/man3/memchr.3:154
259 #: build/C/man3/memcmp.3:77 build/C/man3/memcpy.3:69 build/C/man3/memfrob.3:72
260 #: build/C/man3/memmem.3:74 build/C/man3/memmove.3:73
261 #: build/C/man3/mempcpy.3:83 build/C/man3/memset.3:62
262 #: build/C/man3/stpcpy.3:115 build/C/man3/stpncpy.3:78
263 #: build/C/man3/strcasecmp.3:81 build/C/man3/strcat.3:158
264 #: build/C/man3/strchr.3:131 build/C/man3/strcmp.3:84
265 #: build/C/man3/strcoll.3:80 build/C/man3/strcpy.3:212
266 #: build/C/man3/strdup.3:138 build/C/man3/strerror.3:217
267 #: build/C/man3/strfry.3:69 build/C/man3/string.3:126 build/C/man3/strlen.3:62
268 #: build/C/man3/strnlen.3:69 build/C/man3/strpbrk.3:70
269 #: build/C/man3/strsep.3:105 build/C/man3/strsignal.3:95
270 #: build/C/man3/strspn.3:86 build/C/man3/strstr.3:95 build/C/man3/strtok.3:221
271 #: build/C/man3/strverscmp.3:102 build/C/man3/strxfrm.3:87
274 #| "This page is part of release 3.41 of the Linux I<man-pages> project. A "
275 #| "description of the project, and information about reporting bugs, can be "
276 #| "found at http://www.kernel.org/doc/man-pages/."
278 "This page is part of release 3.50 of the Linux I<man-pages> project. A "
279 "description of the project, and information about reporting bugs, can be "
280 "found at http://www.kernel.org/doc/man-pages/."
282 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.41 の一部\n"
283 "である。プロジェクトの説明とバグ報告に関する情報は\n"
284 "http://www.kernel.org/doc/man-pages/ に書かれている。"
287 #: build/C/man3/bcopy.3:33
293 #: build/C/man3/bcopy.3:33
299 #: build/C/man3/bcopy.3:36
300 msgid "bcopy - copy byte sequence"
301 msgstr "bcopy - バイト列をコピーする"
304 #: build/C/man3/bcopy.3:41
306 msgid "B<void bcopy(const void *>I<src>B<, void *>I<dest>B<, size_t >I<n>B<);>\n"
307 msgstr "B<void bcopy(const void *>I<src>B<, void *>I<dest>B<, size_t >I<n>B<);>\n"
310 #: build/C/man3/bcopy.3:52
312 "The B<bcopy>() function copies I<n> bytes from I<src> to I<dest>. The "
313 "result is correct, even when both areas overlap."
315 "B<bcopy>() は I<src> から先頭 I<n> バイトを I<dest> にコピーする。 領域が重"
316 "なっていても、結果は正しいものである。"
319 #: build/C/man3/bcopy.3:54 build/C/man3/bzero.3:50
324 #: build/C/man3/bcopy.3:68
326 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
327 "B<memcpy>(3) or B<memmove>(3) in new programs. Note that the first two "
328 "arguments are interchanged for B<memcpy>(3) and B<memmove>(3). "
329 "POSIX.1-2008 removes the specification of B<bcopy>()."
331 "4.3BSD. この関数は廃止予定である (POSIX.1-2001 では 過去の名残 (LEGACY) とさ"
332 "れている)。新しいプログラムでは B<memcpy>() や B<memmove>() を使用すべきで"
333 "ある。 B<memcpy>() や B<memmove>() では、最初の 2 つの引数の順序が入れ替"
334 "わっていることに注意すること。 POSIX.1-2008 では、 B<bcopy>() の仕様が削除さ"
338 #: build/C/man3/bcopy.3:74
339 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
341 "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
344 #: build/C/man3/bstring.3:32
350 #: build/C/man3/bstring.3:32
356 #: build/C/man3/bstring.3:36
358 "bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem, "
359 "memmove, memset - byte string operations"
361 "bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem, "
362 "memmove, memset - バイト列の操作を行なう"
365 #: build/C/man3/bstring.3:39 build/C/man3/ffs.3:43 build/C/man3/memccpy.3:36
366 #: build/C/man3/memchr.3:38 build/C/man3/memcmp.3:36 build/C/man3/memcpy.3:36
367 #: build/C/man3/memmove.3:36 build/C/man3/mempcpy.3:18
368 #: build/C/man3/memset.3:36 build/C/man3/stpcpy.3:31 build/C/man3/stpncpy.3:20
369 #: build/C/man3/strcat.3:38 build/C/man3/strchr.3:39 build/C/man3/strcmp.3:38
370 #: build/C/man3/strcoll.3:36 build/C/man3/strcpy.3:41 build/C/man3/strdup.3:37
371 #: build/C/man3/strerror.3:45 build/C/man3/strfry.3:38
372 #: build/C/man3/string.3:49 build/C/man3/strlen.3:36 build/C/man3/strnlen.3:19
373 #: build/C/man3/strpbrk.3:36 build/C/man3/strsep.3:39
374 #: build/C/man3/strsignal.3:36 build/C/man3/strspn.3:36
375 #: build/C/man3/strstr.3:39 build/C/man3/strstr.3:45 build/C/man3/strtok.3:36
376 #: build/C/man3/strverscmp.3:33 build/C/man3/strxfrm.3:36
378 msgid "B<#include E<lt>string.hE<gt>>\n"
379 msgstr "B<#include E<lt>string.hE<gt>>\n"
382 #: build/C/man3/bstring.3:41
384 msgid "B<int bcmp(const void *>I<s1>B<, const void *>I<s2>B<, int >I<n>B<);>\n"
385 msgstr "B<int bcmp(const void *>I<s1>B<, const void *>I<s2>B<, int >I<n>B<);>\n"
388 #: build/C/man3/bstring.3:43
390 msgid "B<void bcopy(const void *>I<src>B<, void *>I<dest>B<, int >I<n>B<);>\n"
391 msgstr "B<void bcopy(const void *>I<src>B<, void *>I<dest>B<, int >I<n>B<);>\n"
394 #: build/C/man3/bstring.3:45
396 msgid "B<void bzero(void *>I<s>B<, int >I<n>B<);>\n"
397 msgstr "B<void bzero(void *>I<s>B<, int >I<n>B<);>\n"
400 #: build/C/man3/bstring.3:47 build/C/man3/memccpy.3:38
402 msgid "B<void *memccpy(void *>I<dest>B<, const void *>I<src>B<, int >I<c>B<, size_t >I<n>B<);>\n"
403 msgstr "B<void *memccpy(void *>I<dest>B<, const void *>I<src>B<, int >I<c>B<, size_t >I<n>B<);>\n"
406 #: build/C/man3/bstring.3:49 build/C/man3/memchr.3:40
408 msgid "B<void *memchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
409 msgstr "B<void *memchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
412 #: build/C/man3/bstring.3:51 build/C/man3/memcmp.3:38
414 msgid "B<int memcmp(const void *>I<s1>B<, const void *>I<s2>B<, size_t >I<n>B<);>\n"
415 msgstr "B<int memcmp(const void *>I<s1>B<, const void *>I<s2>B<, size_t >I<n>B<);>\n"
418 #: build/C/man3/bstring.3:53 build/C/man3/memcpy.3:38
420 msgid "B<void *memcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
421 msgstr "B<void *memcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
424 #: build/C/man3/bstring.3:55 build/C/man3/memfrob.3:39
426 msgid "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n"
427 msgstr "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n"
430 #: build/C/man3/bstring.3:58
433 "B<void *memmem(const void *>I<needle>B<, size_t >I<needlelen>B<,>\n"
434 "B< const void *>I<haystack>B<, size_t >I<haystacklen>B<);>\n"
436 "B<void *memmem(const void *>I<needle>B<, size_t >I<needlelen>B<,>\n"
437 "B< const void *>I<haystack>B<, size_t >I<haystacklen>B<);>\n"
440 #: build/C/man3/bstring.3:60 build/C/man3/memmove.3:38
442 msgid "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
443 msgstr "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
446 #: build/C/man3/bstring.3:62 build/C/man3/memset.3:38
448 msgid "B<void *memset(void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
449 msgstr "B<void *memset(void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
452 #: build/C/man3/bstring.3:68
454 "The byte string functions perform operations on strings (byte arrays) that "
455 "are not necessarily null-terminated. See the individual man pages for "
456 "descriptions of each function."
458 "これらの関数は NULL 終端する必要のない文字列 (バイト配列) の操作を行う。 関数"
459 "の詳しい説明は、それぞれの man ページを参照すること。"
462 #: build/C/man3/bstring.3:68 build/C/man3/ffs.3:100 build/C/man3/strcat.3:105
463 #: build/C/man3/strcoll.3:60 build/C/man3/strcpy.3:106
464 #: build/C/man3/strsep.3:70 build/C/man3/strxfrm.3:66
469 #. The old functions are not even available on some non-GNU/Linux systems.
471 #: build/C/man3/bstring.3:82
473 "The functions B<bcmp>(), B<bcopy>() and B<bzero>() are obsolete. Use "
474 "B<memcmp>(), B<memcpy>() and B<memset>() instead."
476 "B<bcmp>(), B<bcopy>(), B<bzero>() 関数は古いものである。代わりに B<memcmp>"
477 "(), B<memcpy>() B<memset>() を使うこと。"
480 #: build/C/man3/bstring.3:94
482 "B<bcmp>(3), B<bcopy>(3), B<bzero>(3), B<memccpy>(3), B<memchr>(3), B<memcmp>"
483 "(3), B<memcpy>(3), B<memfrob>(3), B<memmem>(3), B<memmove>(3), B<memset>(3)"
485 "B<bcmp>(3), B<bcopy>(3), B<bzero>(3), B<memccpy>(3), B<memchr>(3), B<memcmp>"
486 "(3), B<memcpy>(3), B<memfrob>(3), B<memmem>(3), B<memmove>(3), B<memset>(3)"
489 #: build/C/man3/bzero.3:31
495 #: build/C/man3/bzero.3:34
496 msgid "bzero - write zero-valued bytes"
497 msgstr "bzero - 値 0 のバイトで埋める"
500 #: build/C/man3/bzero.3:39
502 msgid "B<void bzero(void *>I<s>B<, size_t >I<n>B<);>\n"
503 msgstr "B<void bzero(void *>I<s>B<, size_t >I<n>B<);>\n"
506 #: build/C/man3/bzero.3:48
508 "The B<bzero>() function sets the first I<n> bytes of the area starting at "
509 "I<s> to zero (bytes containing \\(aq\\e0\\(aq)."
511 "B<bzero>() 関数は バイト列 I<s> から始まる領域の先頭 I<n> バイトを 数値ゼロ "
512 "(値が \\(aq\\e0\\(aq のバイト) で埋める。"
515 #: build/C/man3/bzero.3:57
517 "4.3BSD. This function is deprecated (marked as LEGACY in POSIX.1-2001): use "
518 "B<memset>(3) in new programs. POSIX.1-2008 removes the specification of "
521 "4.3BSD. この関数は廃止予定である (POSIX.1-2001 では 過去の名残 (LEGACY) とさ"
522 "れている)。新しいプログラムでは B<memset>(3) を使用すべきである。 "
523 "POSIX.1-2008 では B<bzero>() の仕様が削除されている。"
526 #: build/C/man3/bzero.3:60
527 msgid "B<memset>(3), B<swab>(3)"
528 msgstr "B<memset>(3), B<swab>(3)"
531 #: build/C/man3/ffs.3:33
537 #: build/C/man3/ffs.3:33 build/C/man3/strcoll.3:30 build/C/man3/strfry.3:30
543 #: build/C/man3/ffs.3:33 build/C/man3/index.3:31 build/C/man3/memccpy.3:30
544 #: build/C/man3/memfrob.3:30 build/C/man3/memmem.3:30
545 #: build/C/man3/memmove.3:30 build/C/man3/mempcpy.3:10
546 #: build/C/man3/memset.3:30 build/C/man3/stpcpy.3:25 build/C/man3/stpncpy.3:14
547 #: build/C/man3/strcat.3:32 build/C/man3/strchr.3:33 build/C/man3/strcoll.3:30
548 #: build/C/man3/strcpy.3:35 build/C/man3/strdup.3:31 build/C/man3/strfry.3:30
549 #: build/C/man3/strlen.3:30 build/C/man3/strnlen.3:13 build/C/man3/strsep.3:33
550 #: build/C/man3/strsignal.3:30 build/C/man3/strstr.3:33
551 #: build/C/man3/strtok.3:30 build/C/man3/strverscmp.3:25
552 #: build/C/man3/strxfrm.3:30
558 #: build/C/man3/ffs.3:36
559 msgid "ffs, ffsl, ffsll - find first bit set in a word"
560 msgstr "ffs, ffsl, ffsll - ワードの中で最初にセットされているビットの検出"
563 #: build/C/man3/ffs.3:41
565 msgid "B<int ffs(int >I<i>B<);>\n"
566 msgstr "B<int ffs(int >I<i>B<);>\n"
569 #: build/C/man3/ffs.3:45
571 msgid "B<int ffsl(long int >I<i>B<);>\n"
572 msgstr "B<int ffsl(long int >I<i>B<);>\n"
575 #: build/C/man3/ffs.3:47
577 msgid "B<int ffsll(long long int >I<i>B<);>\n"
578 msgstr "B<int ffsll(long long int >I<i>B<);>\n"
581 #: build/C/man3/ffs.3:52 build/C/man3/memchr.3:49 build/C/man3/stpcpy.3:38
582 #: build/C/man3/stpncpy.3:27 build/C/man3/strdup.3:50
583 #: build/C/man3/strerror.3:58 build/C/man3/strnlen.3:26
584 #: build/C/man3/strsep.3:46 build/C/man3/strsignal.3:45
585 #: build/C/man3/strtok.3:45
587 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
588 msgstr "glibc 向けの機能検査マクロの要件 (B<feature_test_macros>(7) 参照):"
591 #: build/C/man3/ffs.3:57
596 #: build/C/man3/ffs.3:58
598 msgid "Since glibc 2.12:"
599 msgstr "glibc 2.10 以降:"
602 #: build/C/man3/ffs.3:62
604 "_SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L || "
605 "_XOPEN_SOURCE\\ E<gt>=\\ 700 ||"
607 "_SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L || "
608 "_XOPEN_SOURCE\\ E<gt>=\\ 700 ||"
611 #: build/C/man3/ffs.3:62
613 msgid "Before glibc 2.12:"
614 msgstr "glibc 2.10 より前:"
617 #: build/C/man3/ffs.3:65
622 #: build/C/man3/ffs.3:69
623 msgid "B<ffsl>(), B<ffsll>():"
624 msgstr "B<ffsl>(), B<ffsll>():"
627 #: build/C/man3/ffs.3:71 build/C/man3/stpcpy.3:50 build/C/man3/stpncpy.3:39
628 #: build/C/man3/strdup.3:70 build/C/man3/strnlen.3:38
629 #: build/C/man3/strsignal.3:57
634 #: build/C/man3/ffs.3:87
636 "The B<ffs>() function returns the position of the first (least significant) "
637 "bit set in the word I<i>. The least significant bit is position 1 and the "
638 "most significant position is, for example, 32 or 64. The functions B<ffsll>"
639 "() and B<ffsl>() do the same but take arguments of possibly different size."
641 "B<ffs>() 関数は、ワード I<i> の中で最初にセットされている (最下位)ビットの位"
642 "置を返す。 最下位ビットの位置は 1、最上位ビットの位置は例えば 32 や 64 であ"
643 "る。 B<ffsll>() 関数と B<ffsl>() 関数も同様だが、 異なったサイズの引数をと"
647 #: build/C/man3/ffs.3:91
649 "These functions return the position of the first bit set, or 0 if no bits "
652 "これらの関数は、最初にセットされているビットの位置を返し、 I<i> のどのビット"
653 "もセットされていなければ 0 を返す。"
656 #: build/C/man3/ffs.3:94
657 msgid "B<ffs>(): 4.3BSD, POSIX.1-2001."
658 msgstr "B<ffs>(): 4.3BSD, POSIX.1-2001."
661 #: build/C/man3/ffs.3:100
662 msgid "The B<ffsl>() and B<ffsll>() functions are glibc extensions."
663 msgstr "関数 B<ffsl>() と B<ffsll>() は glibc による拡張である。"
666 #: build/C/man3/ffs.3:103
667 msgid "BSD systems have a prototype in I<E<lt>string.hE<gt>>."
668 msgstr "BSD システムでは I<E<lt>string.hE<gt>> にプロトタイプがある。"
671 #: build/C/man3/ffs.3:105
673 msgstr "B<memchr>(3)"
676 #: build/C/man3/index.3:31
682 #: build/C/man3/index.3:31
688 #: build/C/man3/index.3:34
689 msgid "index, rindex - locate character in string"
690 msgstr "index, rindex - 文字列中の文字の位置を示す"
693 #: build/C/man3/index.3:39 build/C/man3/string.3:45
695 msgid "B<char *index(const char *>I<s>B<, int >I<c>B<);>\n"
696 msgstr "B<char *index(const char *>I<s>B<, int >I<c>B<);>\n"
699 #: build/C/man3/index.3:41 build/C/man3/string.3:47
701 msgid "B<char *rindex(const char *>I<s>B<, int >I<c>B<);>\n"
702 msgstr "B<char *rindex(const char *>I<s>B<, int >I<c>B<);>\n"
705 #: build/C/man3/index.3:47
707 "The B<index>() function returns a pointer to the first occurrence of the "
708 "character I<c> in the string I<s>."
710 "B<index>() 関数は、文字列 I<s> 中に最初に文字 I<c> が 現れた位置へのポインタ"
714 #: build/C/man3/index.3:52
716 "The B<rindex>() function returns a pointer to the last occurrence of the "
717 "character I<c> in the string I<s>."
719 "B<rindex>() 関数は、文字列 I<s> 中に最後に文字 I<c> が 現れた位置へのポイン"
723 #: build/C/man3/index.3:55
725 "The terminating null byte (\\(aq\\e0\\(aq) is considered to be a part of the "
728 "文字列を終端する NULL バイト (\\(aq\\e0\\(aq) は、文字列の一部とみなされる。"
731 #: build/C/man3/index.3:62
733 "The B<index>() and B<rindex>() functions return a pointer to the matched "
734 "character or NULL if the character is not found."
736 "B<index>() と B<rindex>() 関数は、一致した文字へのポインタか、 もし文字が見"
740 #: build/C/man3/index.3:73
742 "4.3BSD; marked as LEGACY in POSIX.1-2001. POSIX.1-2008 removes the "
743 "specifications of B<index>() and B<rindex>(), recommending B<strchr>(3) "
744 "and B<strrchr>(3) instead."
746 "4.3BSD; POSIX.1-2001 では「過去の名残 (LEGACY)」と位置付けられている。 "
747 "POSIX.1-2008 では B<index>() と B<rindex>() の仕様が削除されている。 代わり"
748 "に、 B<strchr>(3) と B<strrchr>(3) の使用が推奨されている。"
751 #: build/C/man3/index.3:83
753 "B<memchr>(3), B<strchr>(3), B<string>(3), B<strpbrk>(3), B<strrchr>(3), "
754 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
756 "B<memchr>(3), B<strchr>(3), B<string>(3), B<strpbrk>(3), B<strrchr>(3), "
757 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
760 #: build/C/man3/memccpy.3:30
766 #: build/C/man3/memccpy.3:30
772 #: build/C/man3/memccpy.3:33
773 msgid "memccpy - copy memory area"
774 msgstr "memccpy - メモリ領域をコピーする"
777 #: build/C/man3/memccpy.3:45
779 "The B<memccpy>() function copies no more than I<n> bytes from memory area "
780 "I<src> to memory area I<dest>, stopping when the character I<c> is found."
782 "B<memccpy>() は、メモリ領域 I<src> からメモリ領域 I<dest> に 最大で I<n> バ"
783 "イトのコピーを行う。 I<n> バイトコピーする前に文字 I<c> が見つかると、 そこで"
787 #: build/C/man3/memccpy.3:47
788 msgid "If the memory areas overlap, the results are undefined."
789 msgstr "コピー元とコピー先のメモリ領域が重なっている場合、 結果は不定である。"
792 #: build/C/man3/memccpy.3:53
794 "The B<memccpy>() function returns a pointer to the next character in "
795 "I<dest> after I<c>, or NULL if I<c> was not found in the first I<n> "
796 "characters of I<src>."
798 "B<memccpy>() は、I<dest> 中に見つかった I<c> の 次にあるキャラクター型の変数"
799 "を指すポインタを返す。 見つからなかった場合、NULL を返す。"
802 #: build/C/man3/memccpy.3:55
803 msgid "SVr4, 4.3BSD, POSIX.1-2001."
804 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
807 #: build/C/man3/memccpy.3:61
808 msgid "B<bcopy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
809 msgstr "B<bcopy>(3), B<memcpy>(3), B<memmove>(3), B<strcpy>(3), B<strncpy>(3)"
812 #: build/C/man3/memchr.3:32
818 #: build/C/man3/memchr.3:32
824 #: build/C/man3/memchr.3:35
825 msgid "memchr, memrchr, rawmemchr - scan memory for a character"
826 msgstr "memchr, memrchr, rawmemchr - 文字を探すためにメモリをスキャンする"
829 #: build/C/man3/memchr.3:42
831 msgid "B<void *memrchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
832 msgstr "B<void *memrchr(const void *>I<s>B<, int >I<c>B<, size_t >I<n>B<);>\n"
835 #: build/C/man3/memchr.3:44
837 msgid "B<void *rawmemchr(const void *>I<s>B<, int >I<c>B<);>\n"
838 msgstr "B<void *rawmemchr(const void *>I<s>B<, int >I<c>B<);>\n"
841 #: build/C/man3/memchr.3:54
842 msgid "B<memrchr>(), B<rawmemchr>(): _GNU_SOURCE"
843 msgstr "B<memrchr>(): B<rawmemchr>(): _GNU_SOURCE"
846 #: build/C/man3/memchr.3:70
848 "The B<memchr>() function scans the initial I<n> bytes of the memory area "
849 "pointed to by I<s> for the first instance of I<c>. Both I<c> and the bytes "
850 "of the memory area pointed to by I<s> are interpreted as I<unsigned char>."
852 "B<memchr>() 関数は、ポインタ I<s> が指し示すメモリ領域の先頭の\n"
853 "I<n> バイトから最初に登場する文字 I<c> を探す。\n"
854 "I<c> と I<s> が指し示すメモリ領域の各バイトは両方とも\n"
855 "I<unsigned char> と解釈される。"
858 #: build/C/man3/memchr.3:81
860 "The B<memrchr>() function is like the B<memchr>() function, except that it "
861 "searches backward from the end of the I<n> bytes pointed to by I<s> instead "
862 "of forward from the beginning."
864 "B<memrchr>() 関数は B<memchr>() 関数に似ているが、 先頭から順方向に探すので"
865 "はなく、 ポインタ I<s> が指し示す I<n> バイトのメモリブロックの 末尾から逆向"
869 #: build/C/man3/memchr.3:99
871 "The B<rawmemchr>() function is similar to B<memchr>(): it assumes (i.e., "
872 "the programmer knows for certain) that an instance of I<c> lies somewhere "
873 "in the memory area starting at the location pointed to by I<s>, and so "
874 "performs an optimized search for I<c> (i.e., no use of a count argument to "
875 "limit the range of the search). If an instance of I<c> is not found, the "
876 "results are unpredictable. The following call is a fast means of locating a "
877 "string's terminating null byte:"
879 "B<rawmemchr>() 関数は B<memchr>() と同様だが、 I<c> が I<s> が指す場所\n"
880 "から始まるメモリ領域のどこかにあることを前提にして (つまり、プログラマ\n"
881 "はそのことを知っている)、最適化した方法で I<c> の検索を実行する (すなわ\n"
882 "ち、検索範囲の上限を示す引き数も使用されない)。I<c> が見つからなかった\n"
883 "場合、その結果はどうなるか分からない。次に示す呼び出しは、文字列終端の\n"
884 "NULL バイトの位置を特定する高速な手段である。"
887 #: build/C/man3/memchr.3:103
889 msgid "char *p = rawmemchr(s,\\ \\(aq\\e0\\(aq);\n"
890 msgstr "char *p = rawmemchr(s,\\ \\(aq\\e0\\(aq);\n"
893 #: build/C/man3/memchr.3:113
895 "The B<memchr>() and B<memrchr>() functions return a pointer to the "
896 "matching byte or NULL if the character does not occur in the given memory "
899 "B<memchr>() 関数と B<memrchr>() 関数は一致する文字へのポインタを返し、 もし"
900 "文字が指定メモリ領域に現れない場合は NULL を返す。"
903 #: build/C/man3/memchr.3:118
905 "The B<rawmemchr>() function returns a pointer to the matching byte, if one "
906 "is found. If no matching byte is found, the result is unspecified."
908 "B<rawmemchr>() 関数はマッチするバイトが見つかった場合はマッチしたバイトへの"
909 "ポインタを返す。 マッチするバイトが見つからなかった場合、結果は不定である。"
912 #: build/C/man3/memchr.3:118 build/C/man3/mempcpy.3:55
913 #: build/C/man3/strchr.3:101
919 #: build/C/man3/memchr.3:121
920 msgid "B<rawmemchr>() first appeared in glibc in version 2.1."
921 msgstr "B<rawmemchr>() は glibc バージョン 2.1 で初めて登場した。"
924 #: build/C/man3/memchr.3:124
925 msgid "B<memrchr>() first appeared in glibc in version 2.2."
926 msgstr "B<memrchr>() は glibc バージョン 2.2 で初めて登場した。"
929 #: build/C/man3/memchr.3:128
931 "The B<memchr>() function conforms to SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
932 msgstr "B<memchr>() 関数は SVr4, 4.3BSD, C89, C99, POSIX.1-2001 に準拠する。"
935 #: build/C/man3/memchr.3:132
937 "The B<memrchr>() function is a GNU extension, available since glibc 2.1.91."
938 msgstr "B<memrchr>() 関数は GNU 拡張であり、glibc 2.1.91 から使用可能である。"
941 #: build/C/man3/memchr.3:136
943 "The B<rawmemchr>() function is a GNU extension, available since glibc 2.1."
944 msgstr "B<rawmemchr>() 関数は GNU 拡張であり、glibc 2.1 から使用可能である。"
947 #: build/C/man3/memchr.3:147
949 "B<ffs>(3), B<index>(3), B<rindex>(3), B<strchr>(3), B<strpbrk>(3), B<strrchr>"
950 "(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wmemchr>(3)"
952 "B<ffs>(3), B<index>(3), B<rindex>(3), B<strchr>(3), B<strpbrk>(3), B<strrchr>"
953 "(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wmemchr>(3)"
956 #: build/C/man3/memcmp.3:30
962 #: build/C/man3/memcmp.3:30 build/C/man3/strcmp.3:32
964 #| msgid "2010-11-15"
969 #: build/C/man3/memcmp.3:33
970 msgid "memcmp - compare memory areas"
971 msgstr "memcmp - メモリ領域を比較する"
974 #: build/C/man3/memcmp.3:45
977 #| "The B<memcmp>() function compares the first I<n> bytes (each interpreted "
978 #| "as I<unsigned char>) of the memory areas I<s1> and I<s2>. It returns an "
979 #| "integer less than, equal to, or greater than zero if I<s1> is found, "
980 #| "respectively, to be less than, to match, or be greater than I<s2>."
982 "The B<memcmp>() function compares the first I<n> bytes (each interpreted as "
983 "I<unsigned char>) of the memory areas I<s1> and I<s2>."
985 "B<memcmp>() 関数は、メモリ領域 I<s1> とI<s2> の最初の I<n> バイトを比較する "
986 "(各バイトは I<unsigned char> として解釈される)。 I<s1> が I<s2> より小さい"
987 "か、同じか、あるいは大きいかによって それぞれ、負の整数、0、正の整数を返す。"
990 #: build/C/man3/memcmp.3:52
992 "The B<memcmp>() function returns an integer less than, equal to, or greater "
993 "than zero if the first I<n> bytes of I<s1> is found, respectively, to be "
994 "less than, to match, or be greater than the first I<n> bytes of I<s2>."
996 "B<memcmp>() 関数は、I<s1> の最初の I<n> バイトが I<s2> の最初の I<n> バイト"
997 "よりも 小さいか、同じか、あるいは大きいかによってそれぞれ、負の整数、0、 正の"
1001 #: build/C/man3/memcmp.3:60
1003 "For a nonzero return value, the sign is determined by the sign of the "
1004 "difference between the first pair of bytes (interpreted as I<unsigned "
1005 "char>) that differ in I<s1> and I<s2>."
1009 #: build/C/man3/memcmp.3:62 build/C/man3/memcpy.3:54 build/C/man3/memmove.3:59
1010 #: build/C/man3/memset.3:51
1011 msgid "SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
1012 msgstr "SVr4, 4.3BSD, C89, C99, POSIX.1-2001."
1015 #: build/C/man3/memcmp.3:70
1017 "B<bcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), B<strncasecmp>"
1018 "(3), B<strncmp>(3), B<wmemcmp>(3)"
1020 "B<bcmp>(3), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3), B<strncasecmp>"
1021 "(3), B<strncmp>(3), B<wmemcmp>(3)"
1024 #: build/C/man3/memcpy.3:30
1030 #: build/C/man3/memcpy.3:30
1036 #: build/C/man3/memcpy.3:33
1037 msgid "memcpy - copy memory area"
1038 msgstr "memcpy - メモリ領域をコピーする。"
1041 #: build/C/man3/memcpy.3:48
1043 "The B<memcpy>() function copies I<n> bytes from memory area I<src> to "
1044 "memory area I<dest>. The memory areas must not overlap. Use B<memmove>(3) "
1045 "if the memory areas do overlap."
1047 "B<memcpy>() はメモリ領域 I<src> の先頭 I<n> バイトを メモリ領域 I<dest> にコ"
1048 "ピーする。コピー元の領域と コピー先の領域が重なってはならない。重なっている場"
1049 "合は B<memmove>(3) を使うこと。"
1052 #: build/C/man3/memcpy.3:52
1053 msgid "The B<memcpy>() function returns a pointer to I<dest>."
1054 msgstr "B<memcpy>() は I<dest> へのポインタを返す。"
1057 #: build/C/man3/memcpy.3:62
1059 "B<bcopy>(3), B<memccpy>(3), B<memmove>(3), B<mempcpy>(3), B<strcpy>(3), "
1060 "B<strncpy>(3), B<wmemcpy>(3)"
1062 "B<bcopy>(3), B<memccpy>(3), B<memmove>(3), B<mempcpy>(3), B<strcpy>(3), "
1063 "B<strncpy>(3), B<wmemcpy>(3)"
1066 #: build/C/man3/memfrob.3:30
1072 #: build/C/man3/memfrob.3:30
1078 #: build/C/man3/memfrob.3:33
1079 msgid "memfrob - frobnicate (encrypt) a memory area"
1080 msgstr "memfrob - メモリエリアの操作 (暗号化)"
1083 #: build/C/man3/memfrob.3:37
1086 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1087 "B<#include E<lt>string.hE<gt>>\n"
1089 "B<#define _GNU_SOURCE> /* feature_test_macros(7) 参照 */\n"
1090 "B<#include E<lt>string.hE<gt>>\n"
1093 #: build/C/man3/memfrob.3:50
1095 "The B<memfrob>() function encrypts the first I<n> bytes of the memory area "
1096 "I<s> by exclusive-ORing each character with the number 42. The effect can "
1097 "be reversed by using B<memfrob>() on the encrypted memory area."
1099 "B<memfrob>() 関数は、メモリエリア I<s> の最初の I<n> バイトの それぞれの文字"
1100 "を 42 との排他的論理をとることによって暗号化する。 変換後のデータは、暗号化さ"
1101 "れているメモリエリアに (再度) B<memfrob>() 関数を施すことで、元に戻すことが"
1105 #: build/C/man3/memfrob.3:53
1107 "Note that this function is not a proper encryption routine as the XOR "
1108 "constant is fixed, and is only suitable for hiding strings."
1110 "この関数は妥当な暗号化ルーチンであるとは言えないことに注意して欲しい。 XOR を"
1111 "とる定数を固定しているので、せいぜい、文字列を隠す程度の用法にし か向いていな"
1115 #: build/C/man3/memfrob.3:58
1117 "The B<memfrob>() function returns a pointer to the encrypted memory area."
1118 msgstr "B<memfrob>() 関数は、暗号化されたメモリエリアへのポインタを返す。"
1121 #: build/C/man3/memfrob.3:63
1122 msgid "The B<memfrob>() function is unique to the GNU C Library."
1123 msgstr "B<memfrob>() 関数は GNU C ライブラリに固有である。"
1126 #: build/C/man3/memfrob.3:65
1127 msgid "B<strfry>(3)"
1128 msgstr "B<strfry>(3)"
1131 #: build/C/man3/memmem.3:30
1137 #: build/C/man3/memmem.3:30
1143 #: build/C/man3/memmem.3:33
1144 msgid "memmem - locate a substring"
1145 msgstr "memmem - 部分文字列の位置を示す"
1148 #: build/C/man3/memmem.3:37 build/C/man3/strchr.3:46
1151 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1152 "B<#include E<lt>string.hE<gt>>\n"
1154 "B<#define _GNU_SOURCE> /* feature_test_macros(7) 参照 */\n"
1155 "B<#include E<lt>string.hE<gt>>\n"
1158 #: build/C/man3/memmem.3:40
1161 "B<void *memmem(const void *>I<haystack>B<, size_t >I<haystacklen>B<,>\n"
1162 "B< const void *>I<needle>B<, size_t >I<needlelen>B<);>\n"
1164 "B<void *memmem(const void *>I<haystack>B<, size_t >I<haystacklen>B<,>\n"
1165 "B< const void *>I<needle>B<, size_t >I<needlelen>B<);>\n"
1168 #: build/C/man3/memmem.3:47
1170 "The B<memmem>() function finds the start of the first occurrence of the "
1171 "substring I<needle> of length I<needlelen> in the memory area I<haystack> of "
1172 "length I<haystacklen>."
1174 "B<memmem>() 関数は、 I<haystacklen> の大きさを持つメモリ領域 I<haystack> の"
1175 "中で I<needlelen> の大きさを持つ部分文字列 I<needle> が 最初に現れる位置を見"
1179 #: build/C/man3/memmem.3:52
1181 "The B<memmem>() function returns a pointer to the beginning of the "
1182 "substring, or NULL if the substring is not found."
1184 "B<memmem>() 関数は、部分文字列の開始を指すポインタを返し、もし部分文字列が "
1185 "見つからない場合は NULL を返す。"
1188 #: build/C/man3/memmem.3:54 build/C/man3/mempcpy.3:60
1189 #: build/C/man3/strverscmp.3:90
1190 msgid "This function is a GNU extension."
1191 msgstr "この関数は GNU による拡張である。"
1194 #: build/C/man3/memmem.3:54 build/C/man3/stpcpy.3:72 build/C/man3/strcpy.3:183
1195 #: build/C/man3/strsep.3:79 build/C/man3/strstr.3:70 build/C/man3/strtok.3:120
1201 #: build/C/man3/memmem.3:59
1203 "This function was broken in Linux libraries up to and including libc 5.0.9; "
1204 "there the I<needle> and I<haystack> arguments were interchanged, and a "
1205 "pointer to the end of the first occurrence of I<needle> was returned."
1207 "Linux のライブラリに関していうと、 libc 5.0.9 と それ以前のすべてのバージョン"
1208 "で、この関数は壊れている。 それらのライブラリでは I<needle> と I<haystack> 引"
1209 "数が 入れ替わっており、 I<needle> が最初に出現する部分の最後を 示すポインタが"
1213 #: build/C/man3/memmem.3:65
1215 "Both old and new libc's have the bug that if I<needle> is empty, "
1216 "I<haystack-1> (instead of I<haystack>) is returned. And glibc 2.0 makes it "
1217 "worse, returning a pointer to the last byte of I<haystack>. This is fixed "
1220 "新旧両方の libc ライブラリが、 I<needle> が空の場合 (I<haystack> のかわりに) "
1221 "I<haystack-1>\\ が 返されるというバグを持っている。 そして、glibc 2.0 ではさ"
1222 "らに悪くなっており、 I<haystack> の最後のバイトへのポインタを返す。 これは "
1226 #: build/C/man3/memmem.3:67
1227 msgid "B<strstr>(3)"
1228 msgstr "B<strstr>(3)"
1231 #: build/C/man3/memmove.3:30
1237 #: build/C/man3/memmove.3:30
1243 #: build/C/man3/memmove.3:33
1244 msgid "memmove - copy memory area"
1245 msgstr "memmove - メモリ領域をコピーする"
1248 #: build/C/man3/memmove.3:53
1250 "The B<memmove>() function copies I<n> bytes from memory area I<src> to "
1251 "memory area I<dest>. The memory areas may overlap: copying takes place as "
1252 "though the bytes in I<src> are first copied into a temporary array that does "
1253 "not overlap I<src> or I<dest>, and the bytes are then copied from the "
1254 "temporary array to I<dest>."
1256 "B<memmove>() は、メモリ領域 I<src> の先頭 I<n> バイトを メモリ領域 I<dest> "
1257 "にコピーする。コピー元とコピー先の 領域が重なっていてもよい。 最初に I<src> "
1258 "のバイトが I<src> とも I<dest> とも重ならない一時的な配列にコピーされてから、"
1259 "一時的な配列から I<dest> にバイトのコピーが行われたかのように、コピーが行われ"
1263 #: build/C/man3/memmove.3:57
1264 msgid "The B<memmove>() function returns a pointer to I<dest>."
1265 msgstr "B<memmove>() は I<dest> へのポインタを返す。"
1268 #: build/C/man3/memmove.3:66
1270 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<strncpy>(3), "
1273 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<strncpy>(3), "
1277 #: build/C/man3/mempcpy.3:10
1283 #: build/C/man3/mempcpy.3:10
1289 #: build/C/man3/mempcpy.3:13
1290 msgid "mempcpy, wmempcpy - copy memory area"
1291 msgstr "mempcpy, wmempcpy - メモリ領域をコピーする"
1294 #: build/C/man3/mempcpy.3:16 build/C/man3/mempcpy.3:22
1295 #: build/C/man3/strfry.3:36 build/C/man3/strstr.3:43
1296 #: build/C/man3/strverscmp.3:31
1298 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1299 msgstr "B<#define _GNU_SOURCE> /* feature_test_macros(7) 参照 */\n"
1302 #: build/C/man3/mempcpy.3:20
1304 msgid "B<void *mempcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
1305 msgstr "B<void *mempcpy(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
1308 #: build/C/man3/mempcpy.3:24
1310 msgid "B<#include E<lt>wchar.hE<gt>>\n"
1311 msgstr "B<#include E<lt>wchar.hE<gt>>\n"
1314 #: build/C/man3/mempcpy.3:26
1316 msgid "B<wchar_t *wmempcpy(wchar_t *>I<dest>B<, const wchar_t *>I<src>B<, size_t >I<n>B<);>\n"
1317 msgstr "B<wchar_t *wmempcpy(wchar_t *>I<dest>B<, const wchar_t *>I<src>B<, size_t >I<n>B<);>\n"
1320 #: build/C/man3/mempcpy.3:42
1322 "The B<mempcpy>() function is nearly identical to the B<memcpy>(3) "
1323 "function. It copies I<n> bytes from the object beginning at I<src> into the "
1324 "object pointed to by I<dest>. But instead of returning the value of I<dest> "
1325 "it returns a pointer to the byte following the last written byte."
1327 "B<mempcpy>() 関数は B<memcpy>(3) 関数とほぼ同一である。 この関数は、 "
1328 "I<src> で始まるオブジェクトから I<n> バイトを、 I<dest> で指されるオブジェク"
1329 "トにコピーする。 ただし I<dest> の値を返すのではなく、 最後に書き込まれたバイ"
1330 "トの後に続くバイトへのポインタを返す。"
1333 #: build/C/man3/mempcpy.3:45
1335 "This function is useful in situations where a number of objects shall be "
1336 "copied to consecutive memory positions."
1338 "この関数はいくつかのオブジェクトが 連続的なメモリの場所にコピーされるような状"
1342 #: build/C/man3/mempcpy.3:53
1344 "The B<wmempcpy>() function is identical but takes I<wchar_t> type arguments "
1345 "and copies I<n> wide characters."
1347 "B<wmempcpy>() 関数はこの関数と同じであるが、 I<wchar_t> 型の引き数をとり、 "
1348 "I<n> ワイド文字列をコピーする。"
1351 #: build/C/man3/mempcpy.3:55
1352 msgid "I<dest> + I<n>."
1353 msgstr "I<dest> + I<n>."
1356 #: build/C/man3/mempcpy.3:58
1357 msgid "B<mempcpy>() first appeared in glibc in version 2.1."
1358 msgstr "B<mempcpy>() は glibc バージョン 2.1 で初めて登場した。"
1361 #: build/C/man3/mempcpy.3:60 build/C/man3/stpcpy.3:75
1362 #: build/C/man3/strtok.3:136
1368 #: build/C/man3/mempcpy.3:70
1372 "combine(void *o1, size_t s1, void *o2, size_t s2)\n"
1374 " void *result = malloc(s1 + s2);\n"
1375 " if (result != NULL)\n"
1376 " mempcpy(mempcpy(result, o1, s1), o2, s2);\n"
1381 "combine (void *o1, size_t s1, void *o2, size_t s2)\n"
1383 " void *result = malloc(s1 + s2);\n"
1384 " if (result != NULL)\n"
1385 " mempcpy(mempcpy(result, o1, s1), o2, s2);\n"
1389 #: build/C/man3/mempcpy.3:76
1390 msgid "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<wmemcpy>(3)"
1391 msgstr "B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<wmemcpy>(3)"
1394 #: build/C/man3/memset.3:30
1400 #: build/C/man3/memset.3:30
1406 #: build/C/man3/memset.3:33
1407 msgid "memset - fill memory with a constant byte"
1408 msgstr "memset - ある一定のバイトでメモリ領域を埋める。"
1411 #: build/C/man3/memset.3:44
1413 "The B<memset>() function fills the first I<n> bytes of the memory area "
1414 "pointed to by I<s> with the constant byte I<c>."
1416 "B<memset>() は I<s> で示されるメモリ領域の先頭から I<n> バイトを I<c> で埋め"
1420 #: build/C/man3/memset.3:49
1421 msgid "The B<memset>() function returns a pointer to the memory area I<s>."
1422 msgstr "B<memset>() は I<s> へのポインタを返す。"
1425 #: build/C/man3/memset.3:55
1426 msgid "B<bzero>(3), B<swab>(3), B<wmemset>(3)"
1427 msgstr "B<bzero>(3), B<swab>(3), B<wmemset>(3)"
1430 #: build/C/man3/stpcpy.3:25
1436 #: build/C/man3/stpcpy.3:25
1442 #: build/C/man3/stpcpy.3:28
1443 msgid "stpcpy - copy a string returning a pointer to its end"
1444 msgstr "stpcpy - 文字列をコピーし、コピーした文字列の終りへのポインタを返す"
1447 #: build/C/man3/stpcpy.3:33 build/C/man3/string.3:51
1449 msgid "B<char *stpcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1450 msgstr "B<char *stpcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
1453 #: build/C/man3/stpcpy.3:41
1454 msgid "B<stpcpy>():"
1455 msgstr "B<stpcpy>():"
1458 #: build/C/man3/stpcpy.3:44 build/C/man3/stpncpy.3:33 build/C/man3/strdup.3:64
1459 #: build/C/man3/strnlen.3:32 build/C/man3/strsignal.3:51
1461 msgid "Since glibc 2.10:"
1462 msgstr "glibc 2.10 以降:"
1465 #: build/C/man3/stpcpy.3:47 build/C/man3/stpncpy.3:36
1466 #: build/C/man3/strnlen.3:35 build/C/man3/strsignal.3:54
1467 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
1468 msgstr "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
1471 #: build/C/man3/stpcpy.3:47 build/C/man3/stpncpy.3:36 build/C/man3/strdup.3:67
1472 #: build/C/man3/strnlen.3:35 build/C/man3/strsignal.3:54
1474 msgid "Before glibc 2.10:"
1475 msgstr "glibc 2.10 より前:"
1478 #: build/C/man3/stpcpy.3:61
1480 "The B<stpcpy>() function copies the string pointed to by I<src> (including "
1481 "the terminating null byte (\\(aq\\e0\\(aq)) to the array pointed to by "
1482 "I<dest>. The strings may not overlap, and the destination string I<dest> "
1483 "must be large enough to receive the copy."
1485 "B<stpcpy>() 関数は、I<src> で指された文字列を (文字列を終端する NULL バイト "
1486 "(\\(aq\\e0\\(aq) を含めて) I<dest> で指された配列にコピーする。 文字列は重複"
1487 "してはならず、コピー先の文字列 I<dest> はコピーを受け取る のに十分大きくなく"
1491 #: build/C/man3/stpcpy.3:66
1493 "B<stpcpy>() returns a pointer to the B<end> of the string I<dest> (that is, "
1494 "the address of the terminating null byte) rather than the beginning."
1496 "B<stpcpy>() は、文字列 I<dest> の始まりではなく B<終り>を指すポインタ (すな"
1497 "わち、文字列を終端する NULL バイト) を返す。"
1500 #: build/C/man3/stpcpy.3:72
1502 "This function was added to POSIX.1-2008. Before that, it was not part of the "
1503 "C or POSIX.1 standards, nor customary on UNIX systems, but was not a GNU "
1504 "invention either. Perhaps it came from MS-DOS. It is also present on the "
1507 "この関数は POSIX.1-2008 に追加された。 それ以前は、この関数は C や POSIX.1 標"
1508 "準の一部でも UNIX システムの慣習的なものでもなかったが、 GNU の発明というわけ"
1509 "でもなかった。 ひょっとしたら MS-DOS 由来のものかもしれない。 この関数は BSD "
1513 #: build/C/man3/stpcpy.3:75
1514 msgid "This function may overrun the buffer I<dest>."
1515 msgstr "この関数はバッファ I<dest> の範囲を行き過ぎてしまう可能性がある。"
1518 #: build/C/man3/stpcpy.3:80
1520 "For example, this program uses B<stpcpy>() to concatenate B<foo> and B<bar> "
1521 "to produce B<foobar>, which it then prints."
1523 "例として、このプログラムは B<foo> と B<bar> を連結して B<foobar> を作るため"
1524 "に B<stpcpy>() を使用し、その後表示する。"
1527 #: build/C/man3/stpcpy.3:86
1530 "#define _GNU_SOURCE\n"
1531 "#include E<lt>string.hE<gt>\n"
1532 "#include E<lt>stdio.hE<gt>\n"
1534 "#define _GNU_SOURCE\n"
1535 "#include E<lt>string.hE<gt>\n"
1536 "#include E<lt>stdio.hE<gt>\n"
1539 #: build/C/man3/stpcpy.3:92
1545 " char buffer[20];\n"
1546 " char *to = buffer;\n"
1551 " char buffer[20];\n"
1552 " char *to = buffer;\n"
1555 #: build/C/man3/stpcpy.3:97
1558 " to = stpcpy(to, \"foo\");\n"
1559 " to = stpcpy(to, \"bar\");\n"
1560 " printf(\"%s\\en\", buffer);\n"
1563 " to = stpcpy(to, \"foo\");\n"
1564 " to = stpcpy(to, \"bar\");\n"
1565 " printf(\"%s\\en\", buffer);\n"
1569 #: build/C/man3/stpcpy.3:108
1571 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpncpy>(3), "
1572 "B<strcpy>(3), B<string>(3), B<wcpcpy>(3)"
1574 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpncpy>(3), "
1575 "B<strcpy>(3), B<string>(3), B<wcpcpy>(3)"
1578 #: build/C/man3/stpncpy.3:14
1584 #: build/C/man3/stpncpy.3:14 build/C/man3/strsep.3:33 build/C/man3/strstr.3:33
1590 #: build/C/man3/stpncpy.3:17
1591 msgid "stpncpy - copy a fixed-size string, returning a pointer to its end"
1592 msgstr "stpncpy - 固定長の文字列をコピーして、その最後へのポインターを返す"
1595 #: build/C/man3/stpncpy.3:22
1597 msgid "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1598 msgstr "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1601 #: build/C/man3/stpncpy.3:30
1602 msgid "B<stpncpy>():"
1603 msgstr "B<stpncpy>():"
1606 #: build/C/man3/stpncpy.3:56
1608 "The B<stpncpy>() function copies at most I<n> characters from the string "
1609 "pointed to by I<src>, including the terminating null byte (\\(aq\\e0\\(aq), "
1610 "to the array pointed to by I<dest>. Exactly I<n> characters are written at "
1611 "I<dest>. If the length I<strlen(src)> is smaller than I<n>, the remaining "
1612 "characters in the array pointed to by I<dest> are filled with null bytes "
1613 "(\\(aq\\e0\\(aq), If the length I<strlen(src)> is greater or equal to I<n>, "
1614 "the string pointed to by I<dest> will not be null-terminated."
1616 "B<stpncpy>() 関数は I<src> が指している文字列から終端の NULL バイト (\\(aq"
1617 "\\e0\\(aq) を含めて最大 I<n> バイトを I<dest> にコピーする。長さ I<strlen"
1618 "(src)> が I<n> より小さい場合には I<dest> の残りの 部分には NULL バイト "
1619 "(\\(aq\\e0\\(aq) 文字が埋められる。 長さ I<strlen(src)> が I<n> 以上ならば、 "
1620 "I<dest> が指す文字列は NULL で終端されていない。"
1623 #: build/C/man3/stpncpy.3:58
1624 msgid "The strings may not overlap."
1625 msgstr "二つの文字列は重なってはならない。"
1628 #: build/C/man3/stpncpy.3:61
1630 "The programmer must ensure that there is room for at least I<n> characters "
1633 "プログラマーは I<dest> に少なくとも I<n> バイトの空きがあることを 保証しなけ"
1637 #: build/C/man3/stpncpy.3:66
1639 "B<stpncpy>() returns a pointer to the terminating null byte in I<dest>, or, "
1640 "if I<dest> is not null-terminated, I<dest + n>."
1642 "B<stpncpy>() は I<dest> の終端の NULL バイトを指すポインターを返すか、 "
1643 "I<dest> が NULL バイトで終端されていない場合には I<dest + n> を返す。"
1646 #: build/C/man3/stpncpy.3:68
1648 "This function was added to POSIX.1-2008. Before that, it was a GNU extension."
1650 "この関数は POSIX.1-2008 に追加された。 それ以前は GNU による拡張であった。"
1653 #: build/C/man3/stpncpy.3:71
1654 msgid "B<strncpy>(3), B<wcpncpy>(3)"
1655 msgstr "B<strncpy>(3), B<wcpncpy>(3)"
1658 #: build/C/man3/strcasecmp.3:30
1664 #: build/C/man3/strcasecmp.3:30 build/C/man3/strdup.3:31
1665 #: build/C/man3/strnlen.3:13 build/C/man3/strpbrk.3:30
1666 #: build/C/man3/strspn.3:30 build/C/man3/strtok.3:30 build/C/man3/strxfrm.3:30
1672 #: build/C/man3/strcasecmp.3:33
1673 msgid "strcasecmp, strncasecmp - compare two strings ignoring case"
1674 msgstr "strcasecmp, strncasecmp - 二つの文字列を大文字小文字を区別せず比較する"
1677 #: build/C/man3/strcasecmp.3:38 build/C/man3/string.3:41
1679 msgid "B<int strcasecmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1680 msgstr "B<int strcasecmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
1683 #: build/C/man3/strcasecmp.3:40 build/C/man3/string.3:43
1685 msgid "B<int strncasecmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
1686 msgstr "B<int strncasecmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
1689 #: build/C/man3/strcasecmp.3:49
1691 "The B<strcasecmp>() function compares the two strings I<s1> and I<s2>, "
1692 "ignoring the case of the characters. It returns an integer less than, equal "
1693 "to, or greater than zero if I<s1> is found, respectively, to be less than, "
1694 "to match, or be greater than I<s2>."
1696 "B<strcasecmp>() 関数は、二つの文字列 I<s1> と I<s2> を、 大文字小文字を区別"
1697 "せずに比較する。 I<s1> が I<s2> よりも小さいか、同じか、大きいかによってそれ"
1698 "ぞれ 負の整数、0、正の整数を返す。"
1701 #: build/C/man3/strcasecmp.3:54
1703 "The B<strncasecmp>() function is similar, except it only compares the first "
1704 "I<n> bytes of I<s1>."
1706 "B<strncasecmp>() 関数も同様であるが、 I<s1> の最初の I<n> バイトだけを\n"
1710 #: build/C/man3/strcasecmp.3:63
1712 "The B<strcasecmp>() and B<strncasecmp>() functions return an integer less "
1713 "than, equal to, or greater than zero if I<s1> (or the first I<n> bytes "
1714 "thereof) is found, respectively, to be less than, to match, or be greater "
1717 "B<strcasecmp>() と B<strncasecmp>() 関数は、I<s1> (または、その最初の I<n> "
1718 "バイト)が I<s2> よりも小さいか、 同じか、大きいかにより、それぞれ負の整数、"
1722 #: build/C/man3/strcasecmp.3:65
1723 msgid "4.4BSD, POSIX.1-2001."
1724 msgstr "4.4BSD, POSIX.1-2001."
1727 #: build/C/man3/strcasecmp.3:74
1729 "B<bcmp>(3), B<memcmp>(3), B<strcmp>(3), B<strcoll>(3), B<string>(3), "
1730 "B<strncmp>(3), B<wcscasecmp>(3), B<wcsncasecmp>(3)"
1732 "B<bcmp>(3), B<memcmp>(3), B<strcmp>(3), B<strcoll>(3), B<string>(3), "
1733 "B<strncmp>(3), B<wcscasecmp>(3), B<wcsncasecmp>(3)"
1736 #: build/C/man3/strcat.3:32
1742 #: build/C/man3/strcat.3:32 build/C/man3/strcpy.3:35
1744 #| msgid "2012-03-15"
1749 #: build/C/man3/strcat.3:35
1750 msgid "strcat, strncat - concatenate two strings"
1751 msgstr "strcat, strncat - 二つの文字列を連結する"
1754 #: build/C/man3/strcat.3:40 build/C/man3/string.3:53
1756 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
1757 msgstr "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
1760 #: build/C/man3/strcat.3:42 build/C/man3/string.3:71
1762 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1763 msgstr "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
1766 #: build/C/man3/strcat.3:56
1769 #| "The B<strcat>() function appends the I<src> string to the I<dest> "
1770 #| "string, overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end "
1771 #| "of I<dest>, and then adds a terminating null byte. The strings may not "
1772 #| "overlap, and the I<dest> string must have enough space for the result."
1774 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
1775 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
1776 "I<dest>, and then adds a terminating null byte. The strings may not "
1777 "overlap, and the I<dest> string must have enough space for the result. If "
1778 "I<dest> is not large enough, program behavior is unpredictable; I<buffer "
1779 "overruns are a favorite avenue for attacking secure programs>."
1781 "B<strcat>() 関数は、I<dest> 文字列の後に I<src> 文字列を付け加える。 その際"
1782 "に、I<dest> の最後にある終端の NULL バイト (\\(aq\\e0\\(aq) は上書きされ、新"
1783 "たに生成された文字列の末尾に終端の NULL バイトが付与される。 二つの文字列 "
1784 "I<src> と I<dest> は重なってはならない。 また、文字列 I<dest> は、連結後の結"
1785 "果を格納するのに 十分な大きさでなければならない。"
1788 #: build/C/man3/strcat.3:60
1789 msgid "The B<strncat>() function is similar, except that"
1790 msgstr "B<strncat>() も同様だが、以下の点が異なる。"
1793 #: build/C/man3/strcat.3:60 build/C/man3/strcat.3:62 build/C/man3/strsep.3:82
1794 #: build/C/man3/strsep.3:84 build/C/man3/strsep.3:86 build/C/man3/strtok.3:123
1795 #: build/C/man3/strtok.3:125 build/C/man3/strtok.3:127
1796 #: build/C/man3/strtok.3:129
1802 #: build/C/man3/strcat.3:62
1803 msgid "it will use at most I<n> bytes from I<src>; and"
1804 msgstr "I<src> のうち最大 I<n> バイトが使用される。"
1807 #: build/C/man3/strcat.3:65
1809 "I<src> does not need to be null-terminated if it contains I<n> or more bytes."
1811 "I<src> が I<n> バイト以上の場合、 \n"
1812 "I<src> は NULL 終端されている必要はない。"
1815 #: build/C/man3/strcat.3:69
1817 "As with B<strcat>(), the resulting string in I<dest> is always null-"
1820 "B<strcat>() と同じく、I<dest> に格納される結果の文字列は常に NULL 終端され"
1824 #: build/C/man3/strcat.3:76
1826 "If I<src> contains I<n> or more bytes, B<strncat>() writes I<n+1> bytes to "
1827 "I<dest> (I<n> from I<src> plus the terminating null byte). Therefore, the "
1828 "size of I<dest> must be at least I<strlen(dest)+n+1>."
1830 "I<src> が I<n> バイト以上の場合、 B<strncat>() は I<dest> に I<n+1> \n"
1831 "バイトを書き込む (I<src> からの I<n> バイトと終端の NULL バイトである)。\n"
1832 "したがって、I<dest> の大きさは最低でも I<strlen(dest)+n+1> でなければ\n"
1836 #: build/C/man3/strcat.3:80
1837 msgid "A simple implementation of B<strncat>() might be:"
1838 msgstr "B<strncat>() の簡単な実装は以下のような感じであろう:"
1841 #: build/C/man3/strcat.3:88
1845 "strncat(char *dest, const char *src, size_t n)\n"
1847 " size_t dest_len = strlen(dest);\n"
1851 "strncat(char *dest, const char *src, size_t n)\n"
1853 " size_t dest_len = strlen(dest);\n"
1857 #: build/C/man3/strcat.3:92
1860 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
1861 " dest[dest_len + i] = src[i];\n"
1862 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
1864 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
1865 " dest[dest_len + i] = src[i];\n"
1866 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
1869 #: build/C/man3/strcat.3:95 build/C/man3/strcpy.3:95
1879 #: build/C/man3/strcat.3:103
1881 "The B<strcat>() and B<strncat>() functions return a pointer to the "
1882 "resulting string I<dest>."
1884 "B<strcat>() 関数と B<strncat>() 関数は、結果としてできる文字列 I<dest> への"
1888 #: build/C/man3/strcat.3:105 build/C/man3/strcmp.3:67
1889 #: build/C/man3/strcoll.3:60 build/C/man3/strcpy.3:106
1890 #: build/C/man3/strlen.3:50 build/C/man3/strpbrk.3:52 build/C/man3/strspn.3:67
1891 #: build/C/man3/strxfrm.3:66
1892 msgid "SVr4, 4.3BSD, C89, C99."
1893 msgstr "SVr4, 4.3BSD, C89, C99."
1896 #: build/C/man3/strcat.3:107 build/C/man3/strcpy.3:146
1898 "Some systems (the BSDs, Solaris, and others) provide the following function:"
1902 #: build/C/man3/strcat.3:109
1906 #| "strncpy(char *dest, const char *src, size_t n)\n"
1909 msgid " size_t strlcat(char *dest, const char *src, size_t size);\n"
1912 "strncpy(char *dest, const char *src, size_t n)\n"
1916 #. https://lwn.net/Articles/506530/
1918 #: build/C/man3/strcat.3:142
1920 "This function appends the null-terminated string I<src> to the string "
1921 "I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a null "
1922 "terminator to the result, I<unless> I<size> is less than I<strlen(dest)>. "
1923 "This function fixes the buffer overrun problem of B<strcat>(), but the "
1924 "caller must still handle the possibility of data loss if I<size> is too "
1925 "small. The function returns the length of the string B<strlcat>() tried to "
1926 "create; if the return value is greater than or equal to I<size>, data loss "
1927 "occurred. If data loss matters, the caller I<must> either check the "
1928 "arguments before the call, or test the function return value. B<strlcat>() "
1929 "is not present in glibc and is not standardized by POSIX, but is available "
1930 "on Linux via the I<libbsd> library."
1934 #: build/C/man3/strcat.3:151
1936 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
1937 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
1939 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
1940 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
1943 #: build/C/man3/strchr.3:33
1949 #: build/C/man3/strchr.3:33
1955 #: build/C/man3/strchr.3:36
1956 msgid "strchr, strrchr, strchrnul - locate character in string"
1957 msgstr "strchr, strrchr, strchrnul - 文字列中の文字の位置を特定する"
1960 #: build/C/man3/strchr.3:41 build/C/man3/string.3:55
1962 msgid "B<char *strchr(const char *>I<s>B<, int >I<c>B<);>\n"
1963 msgstr "B<char *strchr(const char *>I<s>B<, int >I<c>B<);>\n"
1966 #: build/C/man3/strchr.3:43 build/C/man3/string.3:79
1968 msgid "B<char *strrchr(const char *>I<s>B<, int >I<c>B<);>\n"
1969 msgstr "B<char *strrchr(const char *>I<s>B<, int >I<c>B<);>\n"
1972 #: build/C/man3/strchr.3:48
1974 msgid "B<char *strchrnul(const char *>I<s>B<, int >I<c>B<);>\n"
1975 msgstr "B<char *strchrnul(const char *>I<s>B<, int >I<c>B<);>\n"
1978 #: build/C/man3/strchr.3:57
1980 "The B<strchr>() function returns a pointer to the first occurrence of the "
1981 "character I<c> in the string I<s>."
1983 "B<strchr>() 関数は、文字列 I<s> 中に最初に文字 I<c> が現れた位置へのポインタ"
1987 #: build/C/man3/strchr.3:65
1989 "The B<strrchr>() function returns a pointer to the last occurrence of the "
1990 "character I<c> in the string I<s>."
1992 "B<strrchr>() 関数は、文字列 I<s> 中に最後に文字 I<c> が現れた位置へのポイン"
1996 #: build/C/man3/strchr.3:78
1998 "The B<strchrnul>() function is like B<strchr>() except that if I<c> is not "
1999 "found in I<s>, then it returns a pointer to the null byte at the end of "
2000 "I<s>, rather than NULL."
2002 "B<strchrnul>() 関数は B<strchr>() と同様だが、 I<c> が I<s> 中に見つからな"
2003 "かった場合に、返り値として NULL でなく、I<s> の末尾のヌルバイトへのポインタを"
2007 #: build/C/man3/strchr.3:81
2009 "Here \"character\" means \"byte\"; these functions do not work with wide or "
2010 "multibyte characters."
2012 "ここでいう「文字」は「バイト」の意味なので、 これらの関数はワイド文字やマルチ"
2016 #: build/C/man3/strchr.3:93
2018 "The B<strchr>() and B<strrchr>() functions return a pointer to the matched "
2019 "character or NULL if the character is not found. The terminating null byte "
2020 "is considered part of the string, so that if I<c> is specified as \\(aq"
2021 "\\e0\\(aq, these functions return a pointer to the terminator."
2023 "B<strchr>() と B<strrchr>() 関数は一致した文字へのポインタを返し、もし\n"
2024 "文字が見つからない場合は NULL を返す。終端の NULL バイトは文字列の一部と\n"
2025 "みなされ、I<c> に \\(aq\\e0\\(aq が指定された場合には、これらの関数は\n"
2026 "終端の NULL バイトへのポインタを返す。"
2029 #: build/C/man3/strchr.3:101
2031 "The B<strchrnul>() function returns a pointer to the matched character, or "
2032 "a pointer to the null byte at the end of I<s> (i.e., I<s+strlen(s)>) if the "
2033 "character is not found."
2035 "B<strchrnul>() 関数は一致した文字へのポインタを返す。 文字が見つからない場合"
2036 "は、I<s> の末尾のヌルバイトへの ポインタ (つまり I<s+strlen(s)>) を返す。"
2039 #: build/C/man3/strchr.3:104
2040 msgid "B<strchrnul>() first appeared in glibc in version 2.1.1."
2041 msgstr "B<strchrnul>() は glibc バージョン 2.1.1 で初めて登場した。"
2044 #: build/C/man3/strchr.3:111
2046 "B<strchr>() and B<strrchr>() are in SVr4, 4.3BSD, C89, C99. B<strchrnul>"
2047 "() is a GNU extension."
2049 "B<strchr>() と B<strrchr>() は SVr4, 4.3BSD, C89, C99 に準拠している。 "
2050 "B<strchrnul>() は GNU 拡張である。"
2053 #: build/C/man3/strchr.3:124
2055 "B<index>(3), B<memchr>(3), B<rindex>(3), B<string>(3), B<strlen>(3), "
2056 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), "
2057 "B<wcschr>(3), B<wcsrchr>(3)"
2059 "B<index>(3), B<memchr>(3), B<rindex>(3), B<string>(3), B<strlen>(3), "
2060 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), "
2061 "B<wcschr>(3), B<wcsrchr>(3)"
2064 #: build/C/man3/strcmp.3:32
2070 #: build/C/man3/strcmp.3:35
2071 msgid "strcmp, strncmp - compare two strings"
2072 msgstr "strcmp, strncmp - 二つの文字列を比べる"
2075 #: build/C/man3/strcmp.3:40 build/C/man3/string.3:57
2077 msgid "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
2078 msgstr "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
2081 #: build/C/man3/strcmp.3:42 build/C/man3/string.3:73
2083 msgid "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
2084 msgstr "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
2087 #: build/C/man3/strcmp.3:51
2089 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. It "
2090 "returns an integer less than, equal to, or greater than zero if I<s1> is "
2091 "found, respectively, to be less than, to match, or be greater than I<s2>."
2093 "B<strcmp>() 関数は二つの文字列 I<s1> と I<s2> を較べる。 この関数は、 I<s1> "
2094 "が I<s2> に較べて 1)小さい、2)等しい、3)大きい場合に、 ゼロよりも 1)小さい、"
2098 #: build/C/man3/strcmp.3:56
2100 "The B<strncmp>() function is similar, except it only compares the first (at "
2101 "most) I<n> bytes of I<s1> and I<s2>."
2103 "B<strncmp>() 関数は、I<s1> と I<s2> の最初の I<n> バイトだけを比較する\n"
2104 "ことを除けば、strcmp()と同様である。"
2107 #: build/C/man3/strcmp.3:65
2109 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
2110 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
2111 "found, respectively, to be less than, to match, or be greater than I<s2>."
2113 "B<strcmp>() 関数と B<strncmp>() 関数は整数を返す。 この整数は、ゼロよりも、"
2114 "1)小さい、2)等しい、3)大きいのいずれかである。 それぞれは、I<s1>(または、こ"
2115 "の文字列の最初の I<n> バイト)が I<s2> よりも、1)小さい、2)等しい、3)大きいに"
2119 #: build/C/man3/strcmp.3:77
2121 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
2122 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
2124 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
2125 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3)"
2128 #: build/C/man3/strcoll.3:30
2134 #: build/C/man3/strcoll.3:33
2135 msgid "strcoll - compare two strings using the current locale"
2136 msgstr "strcoll - 現在のロケールを使用して二つの文字列を比較する"
2139 #: build/C/man3/strcoll.3:38 build/C/man3/string.3:59
2141 msgid "B<int strcoll(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
2142 msgstr "B<int strcoll(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
2145 #: build/C/man3/strcoll.3:51
2147 "The B<strcoll>() function compares the two strings I<s1> and I<s2>. It "
2148 "returns an integer less than, equal to, or greater than zero if I<s1> is "
2149 "found, respectively, to be less than, to match, or be greater than I<s2>. "
2150 "The comparison is based on strings interpreted as appropriate for the "
2151 "program's current locale for category B<LC_COLLATE>. (See B<setlocale>(3).)"
2153 "B<strcoll>() 関数は二つの文字列 I<s1> と I<s2> を比較する。 この関数は、"
2154 "I<s1> が I<s2> よりも小さいか、等しいか、大きいかによって それぞれ負の整数、"
2155 "0、正の整数を返す。 比較は、プログラムの現在のロケールの B<LC_COLLATE> カテゴ"
2156 "リに応じて 解釈された文字列に基づいて行われる (B<setlocale>(3) 参照)。"
2159 #: build/C/man3/strcoll.3:58
2161 "The B<strcoll>() function returns an integer less than, equal to, or "
2162 "greater than zero if I<s1> is found, respectively, to be less than, to "
2163 "match, or be greater than I<s2>, when both are interpreted as appropriate "
2164 "for the current locale."
2166 "B<strcoll>() 関数は、I<s1> が I<s2> よりも小さいか、等しいか、 大きいかに"
2167 "よって、それぞれ負の整数、0、正の整数を返す。 どちらの文字列も現在のロケール"
2168 "に応じて解釈されたものが使用される。"
2171 #: build/C/man3/strcoll.3:65
2173 "In the I<\"POSIX\"> or I<\"C\"> locales B<strcoll>() is equivalent to "
2176 "I<\"POSIX\"> および I<\"C\"> ロケールにおいては、 B<strcoll>() は B<strcmp>"
2180 #: build/C/man3/strcoll.3:73
2182 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
2183 "B<string>(3), B<strxfrm>(3)"
2185 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
2186 "B<string>(3), B<strxfrm>(3)"
2189 #: build/C/man3/strcpy.3:35
2195 #: build/C/man3/strcpy.3:38
2196 msgid "strcpy, strncpy - copy a string"
2197 msgstr "strcpy, strncpy - 文字列をコピーする"
2200 #: build/C/man3/strcpy.3:43 build/C/man3/string.3:61
2202 msgid "B<char *strcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
2203 msgstr "B<char *strcpy(char *>I<dest>B<, const char *>I<src>B<);>\n"
2206 #: build/C/man3/strcpy.3:45 build/C/man3/string.3:75
2208 msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
2209 msgstr "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
2212 #: build/C/man3/strcpy.3:56
2215 #| "The B<strcpy>() function copies the string pointed to by I<src>, "
2216 #| "including the terminating null byte (\\(aq\\e0\\(aq), to the buffer "
2217 #| "pointed to by I<dest>. The strings may not overlap, and the destination "
2218 #| "string I<dest> must be large enough to receive the copy."
2220 "The B<strcpy>() function copies the string pointed to by I<src>, including "
2221 "the terminating null byte (\\(aq\\e0\\(aq), to the buffer pointed to by "
2222 "I<dest>. The strings may not overlap, and the destination string I<dest> "
2223 "must be large enough to receive the copy. I<Beware of buffer overruns!> "
2226 "B<strcpy>() 関数は I<src> が指す文字列を末尾のヌルバイト (\\(aq\\e0\\(aq) も"
2227 "含めて I<dest> が指すバッファにコピーする。 二つの文字列は重なってはならな"
2228 "い。受け側の文字列 I<dest> は コピーを受け取るのに十分な大きさでなければなら"
2232 #: build/C/man3/strcpy.3:65
2234 "The B<strncpy>() function is similar, except that at most I<n> bytes of "
2235 "I<src> are copied. B<Warning>: If there is no null byte among the first "
2236 "I<n> bytes of I<src>, the string placed in I<dest> will not be null-"
2239 "B<strncpy>() 関数も同様だが、 I<src> のうち最大でも I<n> バイトしかコピーさ"
2240 "れない点が異なる。 B<警告>: I<src> の最初の I<n> バイトの中にヌルバイトがない"
2241 "場合、 I<dest> に格納される文字列はヌルで終端されないことになる。"
2244 #: build/C/man3/strcpy.3:76
2247 #| "If the length of I<src> is less than I<n>, B<strncpy>() pads the "
2248 #| "remainder of I<dest> with null bytes."
2250 "If the length of I<src> is less than I<n>, B<strncpy>() writes additional "
2251 "null bytes to I<dest> to ensure that a total of I<n> bytes are written."
2253 "I<src> の長さが I<n> よりも短い場合、 B<strncpy>() は I<dest> の残りをヌルバ"
2257 #: build/C/man3/strcpy.3:80
2258 msgid "A simple implementation of B<strncpy>() might be:"
2259 msgstr "B<strncpy>() の簡単な実装は以下のような感じであろう:"
2262 #: build/C/man3/strcpy.3:87
2266 "strncpy(char *dest, const char *src, size_t n)\n"
2271 "strncpy(char *dest, const char *src, size_t n)\n"
2276 #: build/C/man3/strcpy.3:92
2279 " for (i = 0; i E<lt> n && src[i] != \\(aq\\e0\\(aq; i++)\n"
2280 " dest[i] = src[i];\n"
2281 " for ( ; i E<lt> n; i++)\n"
2282 " dest[i] = \\(aq\\e0\\(aq;\n"
2284 " for (i = 0; i E<lt> n && src[i] != \\(aq\\e0\\(aq; i++)\n"
2285 " dest[i] = src[i];\n"
2286 " for ( ; i E<lt> n; i++)\n"
2287 " dest[i] = \\(aq\\e0\\(aq;\n"
2290 #: build/C/man3/strcpy.3:104
2292 "The B<strcpy>() and B<strncpy>() functions return a pointer to the "
2293 "destination string I<dest>."
2295 "B<strcpy>() 関数と B<strncpy>() 関数は 受け側の文字列I<dest>へのポインタを"
2299 #: build/C/man3/strcpy.3:115
2301 "Some programmers consider B<strncpy>() to be inefficient and error prone. "
2302 "If the programmer knows (i.e., includes code to test!) that the size of "
2303 "I<dest> is greater than the length of I<src>, then B<strcpy>() can be used."
2305 "B<strncpy>() は効率的でなく間違いを起こしやすいと考えるプログラマもいるだろ"
2306 "う。 プログラマが I<dest> の大きさが I<src> の長さよりも 大きいことを知ってい"
2307 "る (つまり、そのことをチェックするコードを 書いている) 場合は、 B<strcpy()> "
2311 #: build/C/man3/strcpy.3:124
2313 "One valid (and intended) use of B<strncpy>() is to copy a C string to a "
2314 "fixed-length buffer while ensuring both that the buffer is not overflowed "
2315 "and that unused bytes in the target buffer are zeroed out (perhaps to "
2316 "prevent information leaks if the buffer is to be written to media or "
2317 "transmitted to another process via an interprocess communication technique)."
2321 #: build/C/man3/strcpy.3:130
2324 #| "If there is no terminating null byte in the first I<n> bytes of I<src>, "
2325 #| "B<strncpy>() produces an unterminated string in I<dest>. Programmers "
2326 #| "often prevent this mistake by forcing termination as follows:"
2328 "If there is no terminating null byte in the first I<n> bytes of I<src>, "
2329 "B<strncpy>() produces an unterminated string in I<dest>. You can force "
2330 "termination using something like the following:"
2332 "I<src> の最初の I<n> バイトに終端のヌルバイトがない場合、 B<strncpy>()\n"
2333 "は I<dest> に終端されていない文字列を生成する。 プログラマは間違いを防\n"
2334 "止するために、 以下のように強制的に終端を行うことがよくある。"
2337 #: build/C/man3/strcpy.3:136
2340 "strncpy(buf, str, n);\n"
2342 " buf[n - 1]= \\(aq\\e0\\(aq;\n"
2344 "strncpy(buf, str, n);\n"
2346 " buf[n - 1]= \\(aq\\e0\\(aq;\n"
2349 #: build/C/man3/strcpy.3:144
2351 "(Of course, the above technique ignores the fact that information contained "
2352 "in I<src> is lost in the copying to I<dest>.)"
2356 #: build/C/man3/strcpy.3:148
2360 #| "strncpy(char *dest, const char *src, size_t n)\n"
2363 msgid " size_t strlcpy(char *dest, const char *src, size_t size);\n"
2366 "strncpy(char *dest, const char *src, size_t n)\n"
2370 #. http://static.usenix.org/event/usenix99/full_papers/millert/millert_html/index.html
2371 #. "strlcpy and strlcat - consistent, safe, string copy and concatenation"
2372 #. 1999 USENIX Annual Technical Conference
2373 #. https://lwn.net/Articles/506530/
2375 #: build/C/man3/strcpy.3:183
2377 "This function is similar to B<strncpy>(), but it copies at most I<size-1> "
2378 "bytes to I<dest>, always adds a terminating null byte, and does not pad the "
2379 "target with (further) null bytes. This function fixes some of the problems "
2380 "of B<strcpy>() and B<strncpy>(), but the caller must still handle the "
2381 "possibility of data loss if I<size> is too small. The return value of the "
2382 "function is the length of I<src>, which allows truncation to be easily "
2383 "detected: if the return value is greater than or equal to I<size>, "
2384 "truncation occurred. If loss of data matters, the caller I<must> either "
2385 "check the arguments before the call, or test the function return value. "
2386 "B<strlcpy>() is not present in glibc and is not standardized by POSIX, but "
2387 "is available on Linux via the I<libbsd> library."
2391 #: build/C/man3/strcpy.3:194
2393 "If the destination string of a B<strcpy>() is not large enough, then "
2394 "anything might happen. Overflowing fixed-length string buffers is a "
2395 "favorite cracker technique for taking complete control of the machine. Any "
2396 "time a program reads or copies data into a buffer, the program first needs "
2397 "to check that there's enough space. This may be unnecessary if you can show "
2398 "that overflow is impossible, but be careful: programs can get changed over "
2399 "time, in ways that may make the impossible possible."
2401 "B<strcpy>() の受け側の文字列が十分な大きさでない場合、何が起こるかわからな"
2402 "い。 固定長文字列を溢れさせるのは、マシンの制御を掌中に収めるために クラッ"
2403 "カーが好んで使うテクニックである。 プログラムでデータをバッファに読み込んだり"
2404 "コピーしたりする場合には、 必ずまず最初に十分な大きさがあるかどうかをチェック"
2405 "する必要がある。 プログラマがオーバーフローが不可能だと示せる場合には この"
2406 "チェックは不要かもしれないが、十分注意すること。 長い間には、不可能だったこと"
2407 "が可能になるような方法でプログラムが 変更されることもあるからだ。"
2410 #: build/C/man3/strcpy.3:205
2412 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpcpy>(3), "
2413 "B<stpncpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<wcsncpy>(3)"
2415 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<memmove>(3), B<stpcpy>(3), "
2416 "B<stpncpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<wcsncpy>(3)"
2419 #: build/C/man3/strdup.3:31
2425 #: build/C/man3/strdup.3:34
2426 msgid "strdup, strndup, strdupa, strndupa - duplicate a string"
2427 msgstr "strdup, strndup, strdupa, strndupa - 文字列を複製する"
2430 #: build/C/man3/strdup.3:39 build/C/man3/string.3:65
2432 msgid "B<char *strdup(const char *>I<s>B<);>\n"
2433 msgstr "B<char *strdup(const char *>I<s>B<);>\n"
2436 #: build/C/man3/strdup.3:41
2438 msgid "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
2439 msgstr "B<char *strndup(const char *>I<s>B<, size_t >I<n>B<);>\n"
2442 #: build/C/man3/strdup.3:43
2444 msgid "B<char *strdupa(const char *>I<s>B<);>\n"
2445 msgstr "B<char *strdupa(const char *>I<s>B<);>\n"
2448 #: build/C/man3/strdup.3:45
2450 msgid "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
2451 msgstr "B<char *strndupa(const char *>I<s>B<, size_t >I<n>B<);>\n"
2454 #: build/C/man3/strdup.3:55
2455 msgid "B<strdup>():"
2456 msgstr "B<strdup>():"
2459 #: build/C/man3/strdup.3:58
2461 "_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || _XOPEN_SOURCE"
2462 "\\ &&\\ _XOPEN_SOURCE_EXTENDED"
2464 "_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || _XOPEN_SOURCE"
2465 "\\ &&\\ _XOPEN_SOURCE_EXTENDED"
2468 #: build/C/man3/strdup.3:60
2469 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
2470 msgstr "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
2473 #: build/C/man3/strdup.3:63
2474 msgid "B<strndup>():"
2475 msgstr "B<strndup>():"
2478 #: build/C/man3/strdup.3:67
2479 msgid "POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700"
2480 msgstr "POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700"
2483 #: build/C/man3/strdup.3:75
2484 msgid "B<strdupa>(), B<strndupa>(): _GNU_SOURCE"
2485 msgstr "B<strdupa>(), B<strndupa>(): _GNU_SOURCE"
2488 #: build/C/man3/strdup.3:87
2490 "The B<strdup>() function returns a pointer to a new string which is a "
2491 "duplicate of the string I<s>. Memory for the new string is obtained with "
2492 "B<malloc>(3), and can be freed with B<free>(3)."
2494 "B<strdup>() 関数は、文字列 I<s>の複製である 新しい文字列へのポインタを返"
2495 "す。 新しい文字列のためのメモリは B<malloc>(3) で得ている。 そして、 B<free>"
2499 #: build/C/man3/strdup.3:94
2501 "The B<strndup>() function is similar, but only copies at most I<n> bytes. "
2502 "If I<s> is longer than I<n>, only I<n> bytes are copied, and a terminating "
2503 "null byte (\\(aq\\e0\\(aq) is added."
2505 "B<strndup>() 関数は同様であるが、最大で I<n> バイトだけを複製する。\n"
2506 "I<s> が I<n> よりも長い場合、I<n> バイトだけが複製され、\n"
2507 "終端の NULL バイト (\\(aq\\e0\\(aq)) が追加される。"
2510 #: build/C/man3/strdup.3:104
2512 "B<strdupa>() and B<strndupa>() are similar, but use B<alloca>(3) to "
2513 "allocate the buffer. They are only available when using the GNU GCC suite, "
2514 "and suffer from the same limitations described in B<alloca>(3)."
2516 "B<strdupa>() と B<strndupa>() も同様だが、バッファの確保に\n"
2517 "B<alloca>(3) を使用する点が異なる。\n"
2518 "これらが使用できるのは GNU GCC ツール群を使う場合だけであり、\n"
2519 "B<alloca>(3) で説明されているのと同じ制限がある。"
2522 #: build/C/man3/strdup.3:109
2524 "The B<strdup>() function returns a pointer to the duplicated string, or "
2525 "NULL if insufficient memory was available."
2527 "B<strdup>() 関数は複製された文字列へのポインタ、または 十分なメモリが確保で"
2531 #: build/C/man3/strdup.3:109 build/C/man3/strerror.3:166
2537 #: build/C/man3/strdup.3:110
2543 #: build/C/man3/strdup.3:113
2544 msgid "Insufficient memory available to allocate duplicate string."
2545 msgstr "複製された文字列を割り当てる十分なメモリが確保できなかった。"
2547 #. 4.3BSD-Reno, not (first) 4.3BSD.
2549 #: build/C/man3/strdup.3:123
2551 "B<strdup>() conforms to SVr4, 4.3BSD, POSIX.1-2001. B<strndup>() conforms "
2552 "to POSIX.1-2008. B<strdupa>() and B<strndupa>() are GNU extensions."
2554 "B<strdup>() は SVr4, 4.3BSD, POSIX.1-2001 準拠である。 B<strndup>() は "
2555 "POSIX.1-2008 準拠である。 B<strdupa>(), B<strndupa>() は GNU 拡張である。"
2558 #: build/C/man3/strdup.3:131
2560 "B<alloca>(3), B<calloc>(3), B<free>(3), B<malloc>(3), B<realloc>(3), "
2561 "B<string>(3), B<wcsdup>(3)"
2563 "B<alloca>(3), B<calloc>(3), B<free>(3), B<malloc>(3), B<realloc>(3), "
2564 "B<string>(3), B<wcsdup>(3)"
2567 #: build/C/man3/strerror.3:39
2573 #: build/C/man3/strerror.3:39
2579 #: build/C/man3/strerror.3:42
2580 msgid "strerror, strerror_r - return string describing error number"
2581 msgstr "strerror, strerror_r - エラー番号を説明する文字列を返す。"
2584 #: build/C/man3/strerror.3:47
2586 msgid "B<char *strerror(int >I<errnum>B<);>\n"
2587 msgstr "B<char *strerror(int >I<errnum>B<);>\n"
2590 #: build/C/man3/strerror.3:50
2593 "B<int strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
2594 " /* XSI-compliant */\n"
2596 "B<int strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
2597 " /* XSI-compliant */\n"
2600 #: build/C/man3/strerror.3:53
2603 "B<char *strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
2604 " /* GNU-specific */\n"
2606 "B<char *strerror_r(int >I<errnum>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
2607 " /* GNU-specific */\n"
2610 #: build/C/man3/strerror.3:63
2611 msgid "The XSI-compliant version of B<strerror_r>() is provided if:"
2612 msgstr "次の場合には XSI 準拠のバージョンの B<strerror_r>() が提供される:"
2615 #: build/C/man3/strerror.3:65
2617 "(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600) && !\\ "
2620 "(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600) && !\\ "
2624 #: build/C/man3/strerror.3:67
2625 msgid "Otherwise, the GNU-specific version is provided."
2626 msgstr "それ以外の場合、GNU バージョンが提供される。"
2629 #: build/C/man3/strerror.3:87
2631 "The B<strerror>() function returns a pointer to a string that describes the "
2632 "error code passed in the argument I<errnum>, possibly using the "
2633 "B<LC_MESSAGES> part of the current locale to select the appropriate "
2634 "language. (For example, if I<errnum> is B<EINVAL>, the returned description "
2635 "will \"Invalid argument\".) This string must not be modified by the "
2636 "application, but may be modified by a subsequent call to B<strerror>(). No "
2637 "library function, including B<perror>(3), will modify this string."
2639 "B<strerror>() 関数は、引き数 I<errnum> で渡されたエラーコードについての\n"
2640 "説明が入った文字列へのポインタを返す。 可能であるならば、適切な言語を選\n"
2641 "択するために、 現在のロケールの B<LC_MESSAGES> を使う。(例えば、\n"
2642 "I<errnum> が B<EINVAL> の場合、説明として\"Invalid argument\" が返され\n"
2643 "る。) この文字列は、アプリケーションで変更してはならないが、 これ以降に\n"
2644 "行われる B<strerror>() の呼び出しで 変更されても構わない。この文字列を\n"
2645 "変更するライブラリ関数はない (B<perror>(3) も含まれる)。"
2648 #: build/C/man3/strerror.3:108
2650 "The B<strerror_r>() function is similar to B<strerror>(), but is thread "
2651 "safe. This function is available in two versions: an XSI-compliant version "
2652 "specified in POSIX.1-2001 (available since glibc 2.3.4, but not POSIX-"
2653 "compliant until glibc 2.13), and a GNU-specific version (available since "
2654 "glibc 2.0). The XSI-compliant version is provided with the feature test "
2655 "macros settings shown in the SYNOPSIS; otherwise the GNU-specific version is "
2656 "provided. If no feature test macros are explicitly defined, then (since "
2657 "glibc 2.4) B<_POSIX_SOURCE> is defined by default with the value 200112L, "
2658 "so that the XSI-compliant version of B<strerror_r>() is provided by default."
2660 "B<strerror_r>() 関数は B<strerror>() と似ているが、スレッドセーフである。\n"
2661 "この関数には二種類のバージョンが存在し、 POSIX.1-2001 で規定された XSI\n"
2662 "準拠のバージョン (glibc 2.3.4 以降で利用可能だが、glibc 2.13 までは\n"
2663 "POSIX 準拠ではない) と、 GNU 仕様のバージョン (glibc 2.0 以降で利用可能)\n"
2664 "である。 「書式」の節に記載された機能検査マクロの場合には、 XSI 準拠の\n"
2665 "バージョンが提供される。それ以外の場合には GNU 仕様のバージョンが提供さ\n"
2666 "れる。機能検査マクロが一つも明示的に定義されない場合、 (glibc 2.4 以降\n"
2667 "では) デフォルトで B<_POSIX_SOURCE> は値 200112l で定義され、その結果\n"
2668 "XSI 準拠のバージョンの B<strerror_r>() がデフォルトで提供される。"
2671 #: build/C/man3/strerror.3:116
2673 "The XSI-compliant B<strerror_r>() is preferred for portable applications. "
2674 "It returns the error string in the user-supplied buffer I<buf> of length "
2677 "移植性が必要なアプリケーションでは、 XSI 準拠の B<strerror_r>() を使う方がよ"
2678 "い。 この関数は、ユーザーから提供される長さ I<buflen> のバッファ I<buf> にエ"
2682 #: build/C/man3/strerror.3:136
2684 "The GNU-specific B<strerror_r>() returns a pointer to a string containing "
2685 "the error message. This may be either a pointer to a string that the "
2686 "function stores in I<buf>, or a pointer to some (immutable) static string "
2687 "(in which case I<buf> is unused). If the function stores a string in "
2688 "I<buf>, then at most I<buflen> bytes are stored (the string may be truncated "
2689 "if I<buflen> is too small and I<errnum> is unknown). The string always "
2690 "includes a terminating null byte."
2692 "GNU 仕様の B<strerror_r>() は、エラーメッセージを格納した文字列へのポイ\n"
2693 "ンタを返す。返り値は、この関数が I<buf> に格納した文字列へのポインタか、\n"
2694 "何らかの (不変な) 静的な文字列へのポインタ、のいずれかとなる (後者の場\n"
2695 "合は I<buf> は使用されない)。 I<buf> に文字列が格納される場合は、最大で\n"
2696 "I<buflen> バイトが格納される (I<buflen> が小さ過ぎたときには文字列は切\n"
2697 "り詰められ、 I<errnum> は不定である)。文字列には必ず終端ヌル文字が含ま\n"
2701 #: build/C/man3/strerror.3:144
2703 "The B<strerror>() and the GNU-specific B<strerror_r>() functions return "
2704 "the appropriate error description string, or an \"Unknown error nnn\" "
2705 "message if the error number is unknown."
2707 "B<strerror>() と B<strerror_r>() はエラー内容を説明する 文字列を返す。エ"
2708 "ラー番号が未知の場合は \"Unknown error nnn\" という メッセージを返す。"
2711 #: build/C/man3/strerror.3:157
2714 #| "POSIX.1-2001 and POSIX.1-2008 require that a successful call to "
2715 #| "B<strerror>(3) shall leave I<errno> unchanged, and note that, since no "
2716 #| "function return value is reserved to indicate an error, an application "
2717 #| "that wishes to check for errors should initialize I<errno> to zero before "
2718 #| "the call, and then check I<errno> after the call."
2720 "POSIX.1-2001 and POSIX.1-2008 require that a successful call to B<strerror>"
2721 "() shall leave I<errno> unchanged, and note that, since no function return "
2722 "value is reserved to indicate an error, an application that wishes to check "
2723 "for errors should initialize I<errno> to zero before the call, and then "
2724 "check I<errno> after the call."
2726 "POSIX.1-2001 と POSIX.1-2008 では、 B<strerror>(3) が成功した場合は\n"
2727 "I<errno> を変更せずに元のままにしなければならないとされている。関数のど\n"
2728 "の返り値もエラーを示すために予約されていないので、エラーをチェックした\n"
2729 "いアプリケーションは呼び出しを行う前に I<errno> を 0 に初期化し、呼び出\n"
2730 "しの後で I<errno> をチェックすべき点に注意すること。"
2733 #: build/C/man3/strerror.3:166
2735 "The XSI-compliant B<strerror_r>() function returns 0 on success. On error, "
2736 "a (positive) error number is returned (since glibc 2.13), or -1 is returned "
2737 "and I<errno> is set to indicate the error (glibc versions before 2.13)."
2739 "XSI 準拠の B<strerror_r>() 関数は成功すると 0 を返す。エラーの場合には、\n"
2740 "(glibc 2.13 以降では) (正の) エラー番号が返され、(バージョン 2.13 より前\n"
2741 "の glibc では) -1 が返され、 I<errno> にエラーを示す値がセットされる。"
2744 #: build/C/man3/strerror.3:167
2750 #: build/C/man3/strerror.3:172
2751 msgid "The value of I<errnum> is not a valid error number."
2752 msgstr "I<errnum> の値が有効なエラー番号ではない。"
2755 #: build/C/man3/strerror.3:172
2761 #: build/C/man3/strerror.3:175
2763 "Insufficient storage was supplied to contain the error description string."
2764 msgstr "エラーコードを説明する文字列のために、充分な領域が確保できなかった。"
2767 #: build/C/man3/strerror.3:180
2769 "B<strerror>() is specified by POSIX.1-2001, C89, C99. B<strerror_r>() is "
2770 "specified by POSIX.1-2001."
2772 "B<strerror>() は POSIX.1-2001, C89, C99 で規定されている。 B<strerror_r>() "
2773 "は POSIX.1-2001 で規定されている。"
2776 #: build/C/man3/strerror.3:184
2777 msgid "The GNU-specific B<strerror_r>() function is a nonstandard extension."
2778 msgstr "GNU 仕様の B<strerror_r>() 関数は非標準の拡張である。"
2780 #. e.g., Solaris 8, HP-UX 11
2781 #. e.g., FreeBSD 5.4, Tru64 5.1B
2783 #: build/C/man3/strerror.3:204
2785 "POSIX.1-2001 permits B<strerror>() to set I<errno> if the call encounters "
2786 "an error, but does not specify what value should be returned as the function "
2787 "result in the event of an error. On some systems, B<strerror>() returns "
2788 "NULL if the error number is unknown. On other systems, B<strerror>() "
2789 "returns a string something like \"Error nnn occurred\" and sets I<errno> to "
2790 "B<EINVAL> if the error number is unknown. C99 and POSIX.1-2008 require the "
2791 "return value to be non-NULL."
2793 "POSIX.1-2001 は、 B<strerror>() がエラーに遭遇した場合に I<errno> をセッ\n"
2794 "トすることを認めているが、エラー発生時に関数の結果として どんな値を返す\n"
2795 "べきかを規定してない。 あるシステムでは、 エラー番号が未知の場合、\n"
2796 "B<strerror>() は NULL を返す。 他のシステムでは、 エラー番号が未知の場\n"
2797 "合、 B<strerror>() は \"Error nnn occurred\" といった文字列を返し、\n"
2798 "I<errno> に B<EINVAL> をセットする。 C99 と POSIX.1-2008 では、返り値が\n"
2799 "NULL 以外になることが求められている。"
2802 #: build/C/man3/strerror.3:210
2803 msgid "B<err>(3), B<errno>(3), B<error>(3), B<perror>(3), B<strsignal>(3)"
2804 msgstr "B<err>(3), B<errno>(3), B<error>(3), B<perror>(3), B<strsignal>(3)"
2807 #: build/C/man3/strfry.3:30
2813 #: build/C/man3/strfry.3:33
2814 msgid "strfry - randomize a string"
2815 msgstr "strfry - 文字列をランダムに並べ変える"
2818 #: build/C/man3/strfry.3:40 build/C/man3/string.3:67
2820 msgid "B<char *strfry(char *>I<string>B<);>\n"
2821 msgstr "B<char *strfry(char *>I<string>B<);>\n"
2824 #: build/C/man3/strfry.3:49
2826 "The B<strfry>() function randomizes the contents of I<string> by using "
2827 "B<rand>(3) to randomly swap characters in the string. The result is an "
2828 "anagram of I<string>."
2830 "B<strfry>() 関数は、文字列 I<string> の内容をランダムに並び換える。 並び換え"
2831 "は、 B<rand>(3) 関数を用いて、文字列中の各文字を無作為に 交換することで実現"
2832 "される。結果は、文字列 I<string> のアナグラムである。"
2835 #: build/C/man3/strfry.3:54
2836 msgid "The B<strfry>() functions returns a pointer to the randomized string."
2838 "B<strfry>() 関数は、ランダムに並び換えられた文字列へのポインタを返す。"
2841 #: build/C/man3/strfry.3:59
2842 msgid "The B<strfry>() function is unique to the GNU C Library."
2843 msgstr "B<strfry>() 関数は GNU C ライブラリに特有である。"
2846 #: build/C/man3/strfry.3:62
2847 msgid "B<memfrob>(3), B<string>(3)"
2848 msgstr "B<memfrob>(3), B<string>(3)"
2851 #: build/C/man3/string.3:30
2857 #: build/C/man3/string.3:30
2863 #: build/C/man3/string.3:36
2865 "stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, "
2866 "strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, "
2867 "strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex - string "
2870 "stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, "
2871 "strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, "
2872 "strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex - 文字列を操"
2876 #: build/C/man3/string.3:63 build/C/man3/strspn.3:40
2878 msgid "B<size_t strcspn(const char *>I<s>B<, const char *>I<reject>B<);>\n"
2879 msgstr "B<size_t strcspn(const char *>I<s>B<, const char *>I<reject>B<);>\n"
2882 #: build/C/man3/string.3:69 build/C/man3/strlen.3:38
2884 msgid "B<size_t strlen(const char *>I<s>B<);>\n"
2885 msgstr "B<size_t strlen(const char *>I<s>B<);>\n"
2888 #: build/C/man3/string.3:77 build/C/man3/strpbrk.3:38
2890 msgid "B<char *strpbrk(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2891 msgstr "B<char *strpbrk(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2894 #: build/C/man3/string.3:81 build/C/man3/strsep.3:41
2896 msgid "B<char *strsep(char **>I<stringp>B<, const char *>I<delim>B<);>\n"
2897 msgstr "B<char *strsep(char **>I<stringp>B<, const char *>I<delim>B<);>\n"
2900 #: build/C/man3/string.3:83 build/C/man3/strspn.3:38
2902 msgid "B<size_t strspn(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2903 msgstr "B<size_t strspn(const char *>I<s>B<, const char *>I<accept>B<);>\n"
2906 #: build/C/man3/string.3:85 build/C/man3/strstr.3:41
2908 msgid "B<char *strstr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
2909 msgstr "B<char *strstr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
2912 #: build/C/man3/string.3:87
2914 msgid "B<char *strtok(char *>I<s>B<, const char *>I<delim>B<);>\n"
2915 msgstr "B<char *strtok(char *>I<s>B<, const char *>I<delim>B<);>\n"
2918 #: build/C/man3/string.3:89 build/C/man3/strxfrm.3:38
2920 msgid "B<size_t strxfrm(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
2921 msgstr "B<size_t strxfrm(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
2924 #: build/C/man3/string.3:94
2926 "The string functions perform string operations on null-terminated strings. "
2927 "See the individual man pages for descriptions of each function."
2929 "文字列関数は、NULL 終端された文字列に 対して、文字列操作を実行する。 それぞれ"
2930 "の関数の説明については個々のmanページを見よ。"
2933 #: build/C/man3/string.3:119
2935 "B<index>(3), B<rindex>(3), B<stpcpy>(3), B<strcasecmp>(3), B<strcat>(3), "
2936 "B<strchr>(3), B<strcmp>(3), B<strcoll>(3), B<strcpy>(3), B<strcspn>(3), "
2937 "B<strdup>(3), B<strfry>(3), B<strlen>(3), B<strncasecmp>(3), B<strncat>(3), "
2938 "B<strncmp>(3), B<strncpy>(3), B<strpbrk>(3), B<strrchr>(3), B<strsep>(3), "
2939 "B<strspn>(3), B<strstr>(3), B<strtok>(3), B<strxfrm>(3)"
2941 "B<index>(3), B<rindex>(3), B<stpcpy>(3), B<strcasecmp>(3), B<strcat>(3), "
2942 "B<strchr>(3), B<strcmp>(3), B<strcoll>(3), B<strcpy>(3), B<strcspn>(3), "
2943 "B<strdup>(3), B<strfry>(3), B<strlen>(3), B<strncasecmp>(3), B<strncat>(3), "
2944 "B<strncmp>(3), B<strncpy>(3), B<strpbrk>(3), B<strrchr>(3), B<strsep>(3), "
2945 "B<strspn>(3), B<strstr>(3), B<strtok>(3), B<strxfrm>(3)"
2948 #: build/C/man3/strlen.3:30
2954 #: build/C/man3/strlen.3:30
2960 #: build/C/man3/strlen.3:33
2961 msgid "strlen - calculate the length of a string"
2962 msgstr "strlen - 文字列の長さを計算する"
2965 #: build/C/man3/strlen.3:44
2967 "The B<strlen>() function calculates the length of the string I<s>, "
2968 "excluding the terminating null byte (\\(aq\\e0\\(aq)."
2970 "B<strlen>() 関数は文字列 I<s> の長さを計算する。 このとき、終端 NULL バイト "
2971 "(\\(aq\\e0\\(aq) は計算に含まれない。"
2974 #: build/C/man3/strlen.3:48
2976 "The B<strlen>() function returns the number of bytes in the string I<s>."
2977 msgstr "B<strlen>() 関数は文字列 I<s> のバイト数を返す。"
2980 #: build/C/man3/strlen.3:55
2981 msgid "B<string>(3), B<strnlen>(3), B<wcslen>(3), B<wcsnlen>(3)"
2982 msgstr "B<string>(3), B<strnlen>(3), B<wcslen>(3), B<wcsnlen>(3)"
2985 #: build/C/man3/strnlen.3:13
2991 #: build/C/man3/strnlen.3:16
2992 msgid "strnlen - determine the length of a fixed-size string"
2993 msgstr "strnlen - 固定長の文字列の長さを調べる"
2996 #: build/C/man3/strnlen.3:21
2998 msgid "B<size_t strnlen(const char *>I<s>B<, size_t >I<maxlen>B<);>\n"
2999 msgstr "B<size_t strnlen(const char *>I<s>B<, size_t >I<maxlen>B<);>\n"
3002 #: build/C/man3/strnlen.3:29
3003 msgid "B<strnlen>():"
3004 msgstr "B<strnlen>():"
3007 #: build/C/man3/strnlen.3:51
3009 "The B<strnlen>() function returns the number of bytes in the string pointed "
3010 "to by I<s>, excluding the terminating null bye (\\(aq\\e0\\(aq), but at most "
3011 "I<maxlen>. In doing this, B<strnlen>() looks only at the first I<maxlen> "
3012 "bytes at I<s> and never beyond I<s+maxlen>."
3014 "B<strnlen>() 関数は I<s> が指す文字列の長さをバイト数で返す。 長さには\n"
3015 "終端の NULL バイト (\\(aq\\e0\\(aq) は含まない。 また長さは最大で\n"
3016 "I<maxlen> までであり、 B<strnlen>() は I<s> の最初の I<maxlen> バイト\n"
3017 "のみを検査し I<s+maxlen> より先を検査することはない。"
3020 #: build/C/man3/strnlen.3:58
3022 "The B<strnlen>() function returns I<strlen(s)>, if that is less than "
3023 "I<maxlen>, or I<maxlen> if there is no null byte (\\(aq\\e0\\(aq) among the "
3024 "first I<maxlen> bytes pointed to by I<s>."
3026 "B<strnlen>() 関数は I<maxlen> 以下ならば I<strlen(s)> と同じ値を返す。\n"
3027 "I<s> の指す文字列が最大 I<maxlen> バイトまでに NULL バイト\n"
3028 "(\\(aq\\e0\\(aq) 文字を含まない場合には I<maxlen> を返す。"
3031 #: build/C/man3/strnlen.3:60
3032 msgid "POSIX.1-2008."
3033 msgstr "POSIX.1-2008."
3036 #: build/C/man3/strnlen.3:62
3037 msgid "B<strlen>(3)"
3038 msgstr "B<strlen>(3)"
3041 #: build/C/man3/strpbrk.3:30
3047 #: build/C/man3/strpbrk.3:33
3048 msgid "strpbrk - search a string for any of a set of bytes"
3049 msgstr "strpbrk - 文字列からバイト集合に含まれるバイトを探す"
3052 #: build/C/man3/strpbrk.3:44
3054 "The B<strpbrk>() function locates the first occurrence in the string I<s> "
3055 "of any of the bytes in the string I<accept>."
3057 "B<strpbrk>() 関数は、文字列 I<accept> に含まれるバイトのいずれかが、\n"
3058 "文字列 I<s> 内で最初に現れる位置を特定する。"
3061 #: build/C/man3/strpbrk.3:50
3063 "The B<strpbrk>() function returns a pointer to the byte in I<s> that "
3064 "matches one of the bytes in I<accept>, or NULL if no such byte is found."
3066 "B<strpbrk>() 関数は、I<s> 内のバイトで、I<accept> に含まれる\n"
3067 "バイトのいずれかに一致したバイトへのポインタを返す。\n"
3068 "I<accept> に含まれるバイトが見つからなかった場合は NULL を返す。"
3071 #: build/C/man3/strpbrk.3:63
3073 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3074 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), B<wcspbrk>(3)"
3076 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3077 "B<strsep>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3), B<wcspbrk>(3)"
3080 #: build/C/man3/strsep.3:33
3086 #: build/C/man3/strsep.3:36
3087 msgid "strsep - extract token from string"
3088 msgstr "strsep - 文字列からトークンを取り出す"
3091 #: build/C/man3/strsep.3:50
3092 msgid "B<strsep>(): _BSD_SOURCE"
3093 msgstr "B<strsep>(): _BSD_SOURCE"
3096 #: build/C/man3/strsep.3:63
3098 "If I<*stringp> is NULL, the B<strsep>() function returns NULL and does "
3099 "nothing else. Otherwise, this function finds the first token in the string "
3100 "I<*stringp>, where tokens are delimited by symbols in the string I<delim>. "
3101 "This token is terminated by overwriting the delimiter with a null byte (\\(aq"
3102 "\\e0\\(aq) and I<*stringp> is updated to point past the token. In case no "
3103 "delimiter was found, the token is taken to be the entire string I<*stringp>, "
3104 "and I<*stringp> is made NULL."
3106 "I<*stringp> が NULL の場合、 B<strsep>() 関数は何もせずに NULL を返す。 さも"
3107 "なければ、文字列 I<stringp> を I<delim> に含まれる文字で区切った トークンのう"
3108 "ち最初のものを返す。 トークンは、区切り文字を NULL バイト (\\(aq\\e0\\(aq) で"
3109 "上書きすることで 終端される。 I<*stringp> は切り出されたトークンの次の位置を"
3110 "示すように更新される。 区切り文字が見つからない場合、I<*stringp> 文字列全体が"
3111 "トークンとして 扱われ、I<*stringp> は NULL となる。"
3114 #: build/C/man3/strsep.3:68
3116 "The B<strsep>() function returns a pointer to the token, that is, it "
3117 "returns the original value of I<*stringp>."
3119 "B<strsep>() 関数は、トークンへのポインタを返す。 つまり、元の I<*stringp> の"
3123 #: build/C/man3/strsep.3:70
3128 #: build/C/man3/strsep.3:79
3130 "The B<strsep>() function was introduced as a replacement for B<strtok>(3), "
3131 "since the latter cannot handle empty fields. However, B<strtok>(3) "
3132 "conforms to C89/C99 and hence is more portable."
3134 "B<strsep>() 関数は、 B<strtok>(3) 関数が空のフィールドを 扱えないために、そ"
3135 "の代替品として導入された。 しかしながら、 B<strtok>(3) 関数は C89/C99 に準拠"
3139 #: build/C/man3/strsep.3:82
3140 msgid "Be cautious when using this function. If you do use it, note that:"
3142 "この関数を使う時は注意すること。 もし使うなら、以下のことに注意すること。"
3145 #: build/C/man3/strsep.3:84
3146 msgid "This function modifies its first argument."
3147 msgstr "この関数は最初の引数を変更する。"
3150 #: build/C/man3/strsep.3:86
3151 msgid "This function cannot be used on constant strings."
3152 msgstr "この関数は定数文字列には使えない。"
3155 #: build/C/man3/strsep.3:88
3156 msgid "The identity of the delimiting character is lost."
3157 msgstr "区切り文字自体は失われてしまう。"
3160 #: build/C/man3/strsep.3:98
3162 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3163 "B<strpbrk>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
3165 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3166 "B<strpbrk>(3), B<strspn>(3), B<strstr>(3), B<strtok>(3)"
3169 #: build/C/man3/strsignal.3:30
3175 #: build/C/man3/strsignal.3:30
3181 #: build/C/man3/strsignal.3:33
3182 msgid "strsignal - return string describing signal"
3183 msgstr "strsignal - シグナルを説明する文字列を返す"
3186 #: build/C/man3/strsignal.3:38
3188 msgid "B<char *strsignal(int >I<sig>B<);>\n"
3189 msgstr "B<char *strsignal(int >I<sig>B<);>\n"
3192 #: build/C/man3/strsignal.3:40
3194 msgid "B<extern const char * const >I<sys_siglist>B<[];>\n"
3195 msgstr "B<extern const char * const >I<sys_siglist>B<[];>\n"
3198 #: build/C/man3/strsignal.3:48
3199 msgid "B<strsignal>():"
3200 msgstr "B<strsignal>():"
3203 #: build/C/man3/strsignal.3:68
3205 "The B<strsignal>() function returns a string describing the signal number "
3206 "passed in the argument I<sig>. The string can only be used until the next "
3207 "call to B<strsignal>()."
3209 "B<strsignal>() 関数は、引数 I<sig> で渡されたシグナル番号を 説明する文字列を"
3210 "返す。 文字列は、次の B<strsignal>() が呼ばれるまでの間だけ使用できる。"
3213 #: build/C/man3/strsignal.3:75
3215 "The array I<sys_siglist> holds the signal description strings indexed by "
3216 "signal number. The B<strsignal>() function should be used if possible "
3217 "instead of this array."
3219 "配列 I<sys_siglist> はシグナルを説明する文字列を保持しており、 配列へのアクセ"
3220 "スにはシグナル番号を添え字として用いる事ができる。 出来るだけこの配列の代わり"
3221 "に B<strsignal>() 関数を 使うべきである。"
3224 #: build/C/man3/strsignal.3:82
3226 "The B<strsignal>() function returns the appropriate description string, or "
3227 "an unknown signal message if the signal number is invalid. On some systems "
3228 "(but not on Linux), a NULL pointer may be returned instead for an invalid "
3231 "B<strsignal>() 関数は、シグナルの適切な説明を返す。 もしシグナル番号が不正な"
3232 "場合は、未知のシグナル(unknown signal)を示す メッセージを返す。 (Linux はそう"
3233 "ではないが)不正なシグナル番号に対して、 NULL ポインタを 返すシステムもある。"
3236 #: build/C/man3/strsignal.3:85
3237 msgid "POSIX.1-2008. Present on Solaris and the BSDs."
3238 msgstr "POSIX.1-2008. Solaris と BSD 系にも存在する。"
3241 #: build/C/man3/strsignal.3:88
3242 msgid "B<psignal>(3), B<strerror>(3)"
3243 msgstr "B<psignal>(3), B<strerror>(3)"
3246 #: build/C/man3/strspn.3:30
3252 #: build/C/man3/strspn.3:33
3253 msgid "strspn, strcspn - search a string for a set of bytes"
3254 msgstr "strspn, strcspn - バイト集合で構成される文字列を探す"
3257 #: build/C/man3/strspn.3:47
3259 "The B<strspn>() function calculates the length (in bytes) of the initial "
3260 "segment of I<s> which consists entirely of bytes in I<accept>."
3262 "B<strspn>() 関数は、 I<s> から、I<accept> に含まれる文字だけで\n"
3263 "構成される最初の部分文字列を探し、\n"
3264 "その部分の (バイト単位の) 長さを計算する。"
3267 #: build/C/man3/strspn.3:53
3269 "The B<strcspn>() function calculates the length of the initial segment of "
3270 "I<s> which consists entirely of bytes not in I<reject>."
3272 "B<strcspn>() 関数は、 I<s> から、I<reject> に含まれない文字だけで\n"
3273 "構成される最初の部分文字列を探し、\n"
3274 "その部分の (バイト単位の) 長さを計算する。"
3277 #: build/C/man3/strspn.3:59
3279 "The B<strspn>() function returns the number of bytes in the initial segment "
3280 "of I<s> which consist only of bytes from I<accept>."
3282 "B<strspn>() 関数は、 I<s> 内の、I<accept> からの文字だけで\n"
3283 "構成される最初の部分文字列のバイト数を返す。"
3286 #: build/C/man3/strspn.3:65
3288 "The B<strcspn>() function returns the number of bytes in the initial "
3289 "segment of I<s> which are not in the string I<reject>."
3291 "B<strcspn>() 関数は、I<s> 内の、文字列 I<reject> に含まれない\n"
3292 "文字だけで構成される最初の部分文字列のバイト数を返す。"
3295 #: build/C/man3/strspn.3:79
3297 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3298 "B<strpbrk>(3), B<strsep>(3), B<strstr>(3), B<strtok>(3), B<wcscspn>(3), "
3301 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3302 "B<strpbrk>(3), B<strsep>(3), B<strstr>(3), B<strtok>(3), B<wcscspn>(3), "
3306 #: build/C/man3/strstr.3:33
3312 #: build/C/man3/strstr.3:36
3313 msgid "strstr, strcasestr - locate a substring"
3314 msgstr "strstr, strcasestr - 部分文字列の位置を示す"
3317 #: build/C/man3/strstr.3:47
3319 msgid "B<char *strcasestr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
3320 msgstr "B<char *strcasestr(const char *>I<haystack>B<, const char *>I<needle>B<);>\n"
3323 #: build/C/man3/strstr.3:54
3325 "The B<strstr>() function finds the first occurrence of the substring "
3326 "I<needle> in the string I<haystack>. The terminating null bytes (\\(aq"
3327 "\\e0\\(aq) are not compared."
3329 "B<strstr>() 関数は、部分文字列 I<needle> が文字列 I<haystack> 中 で最初に現"
3330 "れる位置を見つける。 文字列を終端 NULL バイト (\\(aq\\e0\\(aq) は比較されな"
3334 #: build/C/man3/strstr.3:60
3336 "The B<strcasestr>() function is like B<strstr>(), but ignores the case of "
3339 "B<strcasestr>() 関数は B<strstr>() 関数と同様だが、 両方の引数に対して大文"
3343 #: build/C/man3/strstr.3:63
3345 "These functions return a pointer to the beginning of the substring, or NULL "
3346 "if the substring is not found."
3348 "これらの関数は、部分文字列の開始を指すポインタを返し、 もし部分文字列が見つか"
3352 #: build/C/man3/strstr.3:70
3354 "The B<strstr>() function conforms to C89 and C99. The B<strcasestr>() "
3355 "function is a nonstandard extension."
3357 "B<strstr>() 関数は C89 と C99 に準拠している。 B<strcasestr>() 関数は非標準"
3361 #: build/C/man3/strstr.3:76
3363 "Early versions of Linux libc (like 4.5.26) would not allow an empty "
3364 "I<needle> argument for B<strstr>(). Later versions (like 4.6.27) work "
3365 "correctly, and return I<haystack> when I<needle> is empty."
3367 "Linux libc の初期のバージョン(4.5.26 まで)は B<strstr>() 関数の I<needle> 引"
3368 "数に空文字列を指定できない。 最近のバージョン(4.6.27 以降)は正しく動作し、 "
3369 "I<needle> が空の時は I<haystack> を返す。"
3372 #: build/C/man3/strstr.3:88
3374 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strcasecmp>(3), B<strchr>(3), "
3375 "B<string>(3), B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strtok>(3), "
3378 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strcasecmp>(3), B<strchr>(3), "
3379 "B<string>(3), B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strtok>(3), "
3383 #: build/C/man3/strtok.3:30
3389 #: build/C/man3/strtok.3:33
3390 msgid "strtok, strtok_r - extract tokens from strings"
3391 msgstr "strtok, strtok_r - 文字列からトークンを取り出す"
3394 #: build/C/man3/strtok.3:38
3396 msgid "B<char *strtok(char *>I<str>B<, const char *>I<delim>B<);>\n"
3397 msgstr "B<char *strtok(char *>I<str>B<, const char *>I<delim>B<);>\n"
3400 #: build/C/man3/strtok.3:40
3402 msgid "B<char *strtok_r(char *>I<str>B<, const char *>I<delim>B<, char **>I<saveptr>B<);>\n"
3403 msgstr "B<char *strtok_r(char *>I<str>B<, const char *>I<delim>B<, char **>I<saveptr>B<);>\n"
3406 #: build/C/man3/strtok.3:51
3408 "B<strtok_r>(): _SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 1 "
3409 "|| _XOPEN_SOURCE || _POSIX_SOURCE"
3411 "B<strtok_r>(): _SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 1 "
3412 "|| _XOPEN_SOURCE || _POSIX_SOURCE"
3415 #: build/C/man3/strtok.3:62
3417 "The B<strtok>() function parses a string into a sequence of tokens. On the "
3418 "first call to B<strtok>() the string to be parsed should be specified in "
3419 "I<str>. In each subsequent call that should parse the same string, I<str> "
3422 "B<strtok>() 関数は文字列を解析してトークンに分割する。 B<strtok>() を最初に"
3423 "呼び出す際には、解析対象の文字列を I<str> に 指定する。同じ文字列の解析を行う"
3424 "その後の呼び出しでは、 I<str> には NULL を指定する。"
3427 #: build/C/man3/strtok.3:67
3429 "The I<delim> argument specifies a set of bytes that delimit the tokens in "
3430 "the parsed string. The caller may specify different strings in I<delim> in "
3431 "successive calls that parse the same string."
3433 "I<delim> 引き数には、解析対象の文字列をトークンに区切るのに使用する\n"
3434 "バイト集合を指定する。同じ文字列を解析する一連の呼び出しにおいて、\n"
3435 "I<delim> に違う文字列を指定してもよい。"
3438 #: build/C/man3/strtok.3:76
3440 "Each call to B<strtok>() returns a pointer to a null-terminated string "
3441 "containing the next token. This string does not include the delimiting "
3442 "byte. If no more tokens are found, B<strtok>() returns NULL."
3444 "B<strtok>() のそれぞれの呼び出しでは、次のトークンを格納した NULL 終端\n"
3445 "された文字列へのポインタが返される。この文字列には区切りバイトは含まれ\n"
3446 "ない。これ以上トークンが見つからなかった場合には、NULL が返される。"
3449 #: build/C/man3/strtok.3:83
3451 "A sequence of two or more contiguous delimiter bytes in the parsed string is "
3452 "considered to be a single delimiter. Delimiter bytes at the start or end of "
3453 "the string are ignored. Put another way: the tokens returned by B<strtok>"
3454 "() are always nonempty strings."
3456 "解析対象の文字列に 2 つ以上の区切りバイトが連続している場合には、\n"
3457 "一つの区切りバイトとみなされる。 文字列の先頭や末尾にある区切りバイトは\n"
3458 "無視される。言い換えると、 B<strtok>() が返すトークンは必ず空でない\n"
3462 #: build/C/man3/strtok.3:93
3464 "The B<strtok_r>() function is a reentrant version B<strtok>(). The "
3465 "I<saveptr> argument is a pointer to a I<char *> variable that is used "
3466 "internally by B<strtok_r>() in order to maintain context between successive "
3467 "calls that parse the same string."
3469 "B<strtok_r>() 関数は B<strtok>() のリエントラント版である。 I<saveptr> 引き"
3470 "数は I<char *> 変数へのポインタであり、 同じ文字列の解析を行う B<strtok_r>"
3471 "() の呼び出し間で処理状況を保存するために B<strtok_r>() 内部で使用される。"
3474 #: build/C/man3/strtok.3:102
3476 "On the first call to B<strtok_r>(), I<str> should point to the string to be "
3477 "parsed, and the value of I<saveptr> is ignored. In subsequent calls, I<str> "
3478 "should be NULL, and I<saveptr> should be unchanged since the previous call."
3480 "B<strtok_r>() を最初に呼び出す際には、 I<str> は解析対象の文字列を指していな"
3481 "ければならず、 I<saveptr> の値は無視される。それ以降の呼び出しでは、 I<str> "
3482 "は NULL とし、 I<saveptr> は前回の呼び出し以降変更しないようにしなければなら"
3486 #: build/C/man3/strtok.3:106
3488 "Different strings may be parsed concurrently using sequences of calls to "
3489 "B<strtok_r>() that specify different I<saveptr> arguments."
3491 "B<strtok_r>() の呼び出し時に異なる I<saveptr> 引き数を指定することで、 異な"
3492 "る文字列の解析を同時に行うことができる。"
3495 #: build/C/man3/strtok.3:113
3497 "The B<strtok>() and B<strtok_r>() functions return a pointer to the next "
3498 "token, or NULL if there are no more tokens."
3500 "B<strtok>() と B<strtok_r>() は次のトークンへのポインタか、 トークンがなけ"
3504 #: build/C/man3/strtok.3:114
3507 msgstr "B<strtok>()"
3510 #: build/C/man3/strtok.3:117
3511 msgid "SVr4, POSIX.1-2001, 4.3BSD, C89, C99."
3512 msgstr "SVr4, POSIX.1-2001, 4.3BSD, C89, C99."
3515 #: build/C/man3/strtok.3:117
3517 msgid "B<strtok_r>()"
3518 msgstr "B<strtok_r>()"
3521 #: build/C/man3/strtok.3:120
3522 msgid "POSIX.1-2001."
3523 msgstr "POSIX.1-2001."
3526 #: build/C/man3/strtok.3:123
3527 msgid "Be cautious when using these functions. If you do use them, note that:"
3529 "これらの関数を使うのは慎重に吟味すること。 使用する場合は、以下の点に注意が必"
3533 #: build/C/man3/strtok.3:125
3534 msgid "These functions modify their first argument."
3535 msgstr "これらの関数はその最初の引数を変更する。"
3538 #: build/C/man3/strtok.3:127
3539 msgid "These functions cannot be used on constant strings."
3540 msgstr "これらの関数は const な文字列では使えない。"
3543 #: build/C/man3/strtok.3:129
3544 msgid "The identity of the delimiting byte is lost."
3545 msgstr "区切りバイト自体は失われてしまう。"
3548 #: build/C/man3/strtok.3:136
3550 "The B<strtok>() function uses a static buffer while parsing, so it's not "
3551 "thread safe. Use B<strtok_r>() if this matters to you."
3553 "B<strtok>() 関数は文字列の解析に静的バッファを用いるので、スレッドセーフでな"
3554 "い。 これが問題になる場合は B<strtok_r>() を用いること。"
3557 #: build/C/man3/strtok.3:145
3559 "The program below uses nested loops that employ B<strtok_r>() to break a "
3560 "string into a two-level hierarchy of tokens. The first command-line "
3561 "argument specifies the string to be parsed. The second argument specifies "
3562 "the delimiter byte(s) to be used to separate that string into \"major\" "
3563 "tokens. The third argument specifies the delimiter byte(s) to be used to "
3564 "separate the \"major\" tokens into subtokens."
3566 "以下のプログラムは、 B<strtok_r>() を利用するループを入れ子にして使用し、\n"
3567 "文字列を 2 階層のトークンに分割するものである。 1番目のコマンドライン\n"
3568 "引き数には、解析対象の文字列を指定する。 2 番目の引き数には、文字列を\n"
3569 "「大きな」トークンに分割するために 使用する区切りバイトを指定する。\n"
3570 "3 番目の引き数には、「大きな」トークンを細かく分割するために使用する\n"
3574 #: build/C/man3/strtok.3:147
3575 msgid "An example of the output produced by this program is the following:"
3576 msgstr "このプログラムの出力例を以下に示す。"
3579 #: build/C/man3/strtok.3:159
3582 "$B< ./a.out \\(aqa/bbb///cc;xxx:yyy:\\(aq \\(aq:;\\(aq \\(aq/\\(aq>\n"
3592 "$B< ./a.out \\(aqa/bbb///cc;xxx:yyy:\\(aq \\(aq:;\\(aq \\(aq/\\(aq>\n"
3603 #: build/C/man3/strtok.3:161
3605 msgid "Program source"
3609 #: build/C/man3/strtok.3:167
3612 "#include E<lt>stdio.hE<gt>\n"
3613 "#include E<lt>stdlib.hE<gt>\n"
3614 "#include E<lt>string.hE<gt>\n"
3616 "#include E<lt>stdio.hE<gt>\n"
3617 "#include E<lt>stdlib.hE<gt>\n"
3618 "#include E<lt>string.hE<gt>\n"
3621 #: build/C/man3/strtok.3:174
3625 "main(int argc, char *argv[])\n"
3627 " char *str1, *str2, *token, *subtoken;\n"
3628 " char *saveptr1, *saveptr2;\n"
3632 "main(int argc, char *argv[])\n"
3634 " char *str1, *str2, *token, *subtoken;\n"
3635 " char *saveptr1, *saveptr2;\n"
3639 #: build/C/man3/strtok.3:180
3642 " if (argc != 4) {\n"
3643 " fprintf(stderr, \"Usage: %s string delim subdelim\\en\",\n"
3645 " exit(EXIT_FAILURE);\n"
3648 " if (argc != 4) {\n"
3649 " fprintf(stderr, \"Usage: %s string delim subdelim\\en\",\n"
3651 " exit(EXIT_FAILURE);\n"
3655 #: build/C/man3/strtok.3:186
3658 " for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) {\n"
3659 " token = strtok_r(str1, argv[2], &saveptr1);\n"
3660 " if (token == NULL)\n"
3662 " printf(\"%d: %s\\en\", j, token);\n"
3664 " for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) {\n"
3665 " token = strtok_r(str1, argv[2], &saveptr1);\n"
3666 " if (token == NULL)\n"
3668 " printf(\"%d: %s\\en\", j, token);\n"
3671 #: build/C/man3/strtok.3:194
3674 " for (str2 = token; ; str2 = NULL) {\n"
3675 " subtoken = strtok_r(str2, argv[3], &saveptr2);\n"
3676 " if (subtoken == NULL)\n"
3678 " printf(\"\\t --E<gt> %s\\en\", subtoken);\n"
3682 " for (str2 = token; ; str2 = NULL) {\n"
3683 " subtoken = strtok_r(str2, argv[3], &saveptr2);\n"
3684 " if (subtoken == NULL)\n"
3686 " printf(\"\\t --E<gt> %s\\en\", subtoken);\n"
3691 #: build/C/man3/strtok.3:197
3694 " exit(EXIT_SUCCESS);\n"
3697 " exit(EXIT_SUCCESS);\n"
3701 #: build/C/man3/strtok.3:203
3703 "Another example program using B<strtok>() can be found in B<getaddrinfo_a>"
3705 msgstr "B<strtok>() を使った別のプログラム例が B<getaddrinfo_a>(3) にある。"
3708 #: build/C/man3/strtok.3:214
3710 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3711 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
3713 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
3714 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
3717 #: build/C/man3/strverscmp.3:25
3723 #: build/C/man3/strverscmp.3:25
3729 #: build/C/man3/strverscmp.3:28
3730 msgid "strverscmp - compare two version strings"
3731 msgstr "strverscmp - 2つのバージョン文字列を比較する"
3734 #: build/C/man3/strverscmp.3:35
3736 msgid "B<int strverscmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
3737 msgstr "B<int strverscmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
3739 #. classical solution: "rename jan jan0 jan?"
3741 #: build/C/man3/strverscmp.3:52
3743 "Often one has files I<jan1>, I<jan2>, ..., I<jan9>, I<jan10>, ... and it "
3744 "feels wrong when B<ls>(1) orders them I<jan1>, I<jan10>, ..., I<jan2>, ..., "
3745 "I<jan9>. In order to rectify this, GNU introduced the I<-v> option to B<ls>"
3746 "(1), which is implemented using B<versionsort>(3), which again uses "
3749 "I<jan1>, I<jan2>, ..., I<jan9>, I<jan10>, ... といった名前のファイルがある状"
3750 "況はよくあるが、 B<ls>(1) を実行したときに I<jan1>, I<jan10>, ..., "
3751 "I<jan2>, ..., I<jan9> の順番で表示されるのには違和感がある。 これを修正するた"
3752 "めに、GNU は B<ls>(1) に I<-v> オプションを導入した。 この機能は "
3753 "B<versionsort>(3) を使って実装されているが、この中で B<strverscmp>() が使用"
3757 #: build/C/man3/strverscmp.3:63
3759 "Thus, the task of B<strverscmp>() is to compare two strings and find the "
3760 "\"right\" order, while B<strcmp>(3) only finds the lexicographic order. "
3761 "This function does not use the locale category B<LC_COLLATE>, so is meant "
3762 "mostly for situations where the strings are expected to be in ASCII."
3764 "このように B<strverscmp>() の役目は2つの文字列を比較して「正しい」順序を探す"
3765 "ことである。 これに対して B<strcmp>(3) は辞書順で比較した結果を返すだけであ"
3766 "る。 関数 B<strverscmp>() はロケールのカテゴリである B<LC_COLLATE> を使用し"
3767 "ない。 このことから、この関数が主にアスキー文字から成る文字列を 想定している"
3771 #: build/C/man3/strverscmp.3:81
3773 "What this function does is the following. If both strings are equal, return "
3774 "0. Otherwise find the position between two bytes with the property that "
3775 "before it both strings are equal, while directly after it there is a "
3776 "difference. Find the largest consecutive digit strings containing (or "
3777 "starting at, or ending at) this position. If one or both of these is empty, "
3778 "then return what B<strcmp>(3) would have returned (numerical ordering of "
3779 "byte values). Otherwise, compare both digit strings numerically, where "
3780 "digit strings with one or more leading zeros are interpreted as if they have "
3781 "a decimal point in front (so that in particular digit strings with more "
3782 "leading zeros come before digit strings with fewer leading zeros). Thus, "
3783 "the ordering is I<000>, I<00>, I<01>, I<010>, I<09>, I<0>, I<1>, I<9>, I<10>."
3785 "この関数の動作は以下の通りである。 両方の文字列が等しい場合、0 を返す。 それ"
3786 "以外の場合、その直前までは両方の文字列が等しく、 その直後のバイトで両者に違い"
3787 "があるような、バイトの境界を探す。 見つかったバイト境界を含む数字列(数字だけ"
3788 "の文字列)の最長一致検索を行う。 (数字列は境界から始まっていても、境界で終わっ"
3789 "ていてもよい)。 2つの文字列から得られた数字列の一方または両方が空であれば、 "
3790 "B<strcmp>(3) が返した結果を関数の返り値として返す。 すなわち、バイト値を比較"
3791 "した結果を返す。 それ以外の(数字列が両方とも空でない)場合、両方の数字列を数字"
3792 "順で比較する。 このとき、1つ以上の 0 が先頭にある数字列は、前に小数点がついて"
3793 "いるものと 解釈される。(先頭に 0 が多くある数字列ほど前に来ることになる) こ"
3794 "の結果、順序は次のようになる: I<000>, I<00>, I<01>, I<010>, I<09>, I<0>, "
3798 #: build/C/man3/strverscmp.3:88
3800 "The B<strverscmp>() function returns an integer less than, equal to, or "
3801 "greater than zero if I<s1> is found, respectively, to be earlier than, equal "
3802 "to, or later than I<s2>."
3804 "関数 B<strverscmp>() は、ゼロよりも 1)小さい、2)等しい、3)大きいのいずれかの"
3805 "整数を返す。 それぞれは、I<s1> が I<s2> よりも、 1)小さい、2)等しい、3)大き"
3809 #: build/C/man3/strverscmp.3:95
3810 msgid "B<rename>(1), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3)"
3811 msgstr "B<rename>(1), B<strcasecmp>(3), B<strcmp>(3), B<strcoll>(3)"
3814 #: build/C/man3/strxfrm.3:30
3820 #: build/C/man3/strxfrm.3:33
3821 msgid "strxfrm - string transformation"
3822 msgstr "strxfrm - 文字列の変換"
3825 #: build/C/man3/strxfrm.3:56
3827 "The B<strxfrm>() function transforms the I<src> string into a form such "
3828 "that the result of B<strcmp>(3) on two strings that have been transformed "
3829 "with B<strxfrm>() is the same as the result of B<strcoll>(3) on the two "
3830 "strings before their transformation. The first I<n> bytes of the "
3831 "transformed string are placed in I<dest>. The transformation is based on "
3832 "the program's current locale for category B<LC_COLLATE>. (See B<setlocale>"
3835 "B<strxfrm>() 関数は、文字列 I<src> に対して、次のような変換を行う。\n"
3836 "変換は、ある二つの文字列に対して、それぞれを B<strxfrm>() で変換\n"
3837 "した文字列に対して B<strcmp>(3) を行った結果が、 \n"
3838 "変換を行わずにB<strcoll>(3) を行った結果と同じとなるように行う。\n"
3839 "変換された文字列の先頭から I<n> バイト分が I<dest> に代入される。\n"
3840 "変換は、プログラムの現在のロケールのカテゴリ B<LC_COLLATE> に\n"
3841 "基づいて行われる (B<setlocale>(3) を参照)。"
3844 #: build/C/man3/strxfrm.3:64
3846 "The B<strxfrm>() function returns the number of bytes required to store the "
3847 "transformed string in I<dest> excluding the terminating null byte (\\(aq"
3848 "\\e0\\(aq). If the value returned is I<n> or more, the contents of I<dest> "
3849 "are indeterminate."
3851 "B<strxfrm>() 関数は、変換された文字列を I<dest> に代入するときに 必要なバイ"
3852 "ト数から、終端の NULL バイト (\\(aq\\e0\\(aq) の分を 引いたものを返す。もし返"
3853 "り値が I<n> 以上の場合、 I<dest> の内容は不定となる。"
3856 #: build/C/man3/strxfrm.3:72
3858 "In the I<\"POSIX\"> or I<\"C\"> locales B<strxfrm>() is equivalent to "
3859 "copying the string with B<strncpy>(3)."
3861 "I<\"POSIX\"> または I<\"C\"> ロケールでは、関数 B<strxfrm>() は、 関数 "
3862 "B<strncpy>(3) を使って文字列をコピーするのと同じである。"
3865 #: build/C/man3/strxfrm.3:80
3867 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
3868 "B<strcoll>(3), B<string>(3)"
3870 "B<bcmp>(3), B<memcmp>(3), B<setlocale>(3), B<strcasecmp>(3), B<strcmp>(3), "
3871 "B<strcoll>(3), B<string>(3)"
3873 #~ msgid "2011-09-14"
3874 #~ msgstr "2011-09-14"