Debian Codegraph @

po/pt_BR/man3/stpncpy.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Kenzo Marcelo Okamura <[email protected]>, 2000.
5 # André Luiz Fassone <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
10 "PO-Revision-Date: 2000-05-31 17:26+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, fuzzy, no-wrap
25 #| msgid "B<strncpy>(3)"
26 msgid "stpncpy"
27 msgstr "B<strncpy>(3)"
28
29 #. type: TH
30 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-25"
33 msgstr "25 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid ""
53 "stpncpy, strncpy - fill a fixed-size buffer with non-null bytes from a "
54 "string, padding with null bytes as needed"
55 msgstr ""
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "LIBRARY"
62 msgstr "BIBLIOTECA"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "Standard C library (I<libc>,\\ I<-lc>)"
68 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "SINOPSE"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "B<#include E<lt>string.hE<gt>>\n"
82 msgstr "B<#include E<lt>string.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
86 #: opensuse-tumbleweed
87 #, no-wrap
88 msgid ""
89 "B<char *strncpy(>size_t dsize;\n"
90 "B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n"
91 "B< size_t >I<dsize>B<);>\n"
92 "B<char *stpncpy(>size_t dsize;\n"
93 "B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n"
94 "B< size_t >I<dsize>B<);>\n"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 msgid ""
101 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
102 msgstr ""
103 "Requisitos de macro de teste de recursos para o glibc (consulte "
104 "B<feature_test_macros>(7)):"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, fuzzy
110 #| msgid "B<strncpy>(3)"
111 msgid "B<stpncpy>():"
112 msgstr "B<strncpy>(3)"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid ""
119 " Since glibc 2.10:\n"
120 " _POSIX_C_SOURCE E<gt>= 200809L\n"
121 " Before glibc 2.10:\n"
122 " _GNU_SOURCE\n"
123 msgstr ""
124 " Desde o glibc 2.10:\n"
125 " _POSIX_C_SOURCE E<gt>= 200809L\n"
126 " Antes do glibc 2.10:\n"
127 " _GNU_SOURCE\n"
128
129 #. type: SH
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid "DESCRIPTION"
134 msgstr "DESCRIÇÃO"
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "These functions copy non-null bytes from the string pointed to by I<src> "
141 "into the array pointed to by I<dst>. If the source has too few non-null "
142 "bytes to fill the destination, the functions pad the destination with "
143 "trailing null bytes. If the destination buffer, limited by its size, isn't "
144 "large enough to hold the copy, the resulting character sequence is "
145 "truncated. For the difference between the two functions, see RETURN VALUE."
146 msgstr ""
147
148 #. type: TP
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, fuzzy, no-wrap
152 #| msgid "B<strncpy>(3)"
153 msgid "B<strncpy>()"
154 msgstr "B<strncpy>(3)"
155
156 #. type: Plain text
157 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
158 #, fuzzy
159 #| msgid "is equivalent to"
160 msgid "It is equivalent to"
161 msgstr "é equivalente a"
162
163 #. type: Plain text
164 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "stpncpy(dst, src, dsize), dst\n"
167 msgstr ""
168
169 #. type: TP
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, fuzzy, no-wrap
173 #| msgid "B<strncpy>(3)"
174 msgid "B<stpncpy>()"
175 msgstr "B<strncpy>(3)"
176
177 #. type: Plain text
178 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
179 #, no-wrap
180 msgid ""
181 "memset(mempcpy(dst, src, strnlen(src, dsize)), \\[aq]\\[rs]0\\[aq],\n"
182 " dsize - strnlen(src, dsize))\n"
183 msgstr ""
184
185 #. type: SH
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "RETURN VALUE"
190 msgstr "VALOR DE RETORNO"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid "returns I<dst>."
196 msgstr ""
197
198 #. type: Plain text
199 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
200 #: opensuse-tumbleweed
201 msgid ""
202 "returns a pointer to one past the last non-null character written, that is, "
203 "I<dest\\ +\\ strnlen(src,\\ n)>."
204 msgstr ""
205
206 #. type: SH
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 #, no-wrap
210 msgid "ATTRIBUTES"
211 msgstr "ATRIBUTOS"
212
213 #. type: Plain text
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 msgid ""
217 "For an explanation of the terms used in this section, see B<attributes>(7)."
218 msgstr ""
219 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
220
221 #. type: tbl table
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "Interface"
226 msgstr "Interface"
227
228 #. type: tbl table
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "Attribute"
233 msgstr "Atributo"
234
235 #. type: tbl table
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "Value"
240 msgstr "Valor"
241
242 #. type: tbl table
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid ".na\n"
247 msgstr ".na\n"
248
249 #. type: tbl table
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid ".nh\n"
254 msgstr ".nh\n"
255
256 #. type: tbl table
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, fuzzy, no-wrap
260 #| msgid "B<strncpy>(3)"
261 msgid ""
262 "B<stpncpy>(),\n"
263 "B<strncpy>()"
264 msgstr "B<strncpy>(3)"
265
266 #. type: tbl table
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "Thread safety"
271 msgstr "Thread safety"
272
273 #. type: tbl table
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "MT-Safe"
278 msgstr "MT-Safe"
279
280 #. type: SH
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "STANDARDS"
285 msgstr "PADRÕES"
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid "C11, POSIX.1-2008."
291 msgstr "C11, POSIX.1-2008."
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "POSIX.1-2008."
297 msgstr "POSIX.1-2008."
298
299 #. type: SH
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "HISTORY"
304 msgstr "HISTÓRICO"
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, fuzzy
310 #| msgid "POSIX.1-2001, SVr4, 4.3BSD."
311 msgid "C89, POSIX.1-2001, SVr4, 4.3BSD."
312 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, fuzzy
318 #| msgid "glibc 2.1. C99, POSIX.1-2001."
319 msgid "glibc 1.07. POSIX.1-2008."
320 msgstr "glibc 2.1. C99, POSIX.1-2001."
321
322 #. type: SH
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid "CAVEATS"
327 msgstr ""
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "The name of these functions is confusing. These functions produce a null-"
334 "padded character sequence, not a string (see B<string_copying>(7)). For "
335 "example:"
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid ""
343 "strncpy(buf, \"1\", 5); // { \\[aq]1\\[aq], 0, 0, 0, 0 }\n"
344 "strncpy(buf, \"1234\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], 0 }\n"
345 "strncpy(buf, \"12345\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n"
346 "strncpy(buf, \"123456\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid ""
353 "It's impossible to distinguish truncation by the result of the call, from a "
354 "character sequence that just fits the destination buffer; truncation should "
355 "be detected by comparing the length of the input string with the size of the "
356 "destination buffer."
357 msgstr ""
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "If you're going to use this function in chained calls, it would be useful to "
364 "develop a similar function that accepts a pointer to the end (one after the "
365 "last element) of the destination buffer instead of its size."
366 msgstr ""
367
368 #. type: SH
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "EXAMPLES"
373 msgstr "EXEMPLOS"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid ""
380 "#include E<lt>err.hE<gt>\n"
381 "#include E<lt>stdio.hE<gt>\n"
382 "#include E<lt>stdlib.hE<gt>\n"
383 "#include E<lt>string.hE<gt>\n"
384 "\\&\n"
385 "int\n"
386 "main(void)\n"
387 "{\n"
388 " char *p;\n"
389 " char buf1[20];\n"
390 " char buf2[20];\n"
391 " size_t len;\n"
392 "\\&\n"
393 " if (sizeof(buf2) E<lt> strlen(\"Hello world!\"))\n"
394 " errx(\"strncpy: truncating character sequence\");\n"
395 " strncpy(buf2, \"Hello world!\", sizeof(buf2));\n"
396 " len = strnlen(buf2, sizeof(buf2));\n"
397 "\\&\n"
398 " printf(\"[len = %zu]: \", len);\n"
399 " fwrite(buf2, 1, len, stdout);\n"
400 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
401 "\\&\n"
402 " if (sizeof(buf1) E<lt> strlen(\"Hello world!\"))\n"
403 " errx(\"stpncpy: truncating character sequence\");\n"
404 " p = stpncpy(buf1, \"Hello world!\", sizeof(buf1));\n"
405 " len = p - buf1;\n"
406 "\\&\n"
407 " printf(\"[len = %zu]: \", len);\n"
408 " fwrite(buf1, 1, len, stdout);\n"
409 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
410 "\\&\n"
411 " exit(EXIT_SUCCESS);\n"
412 "}\n"
413 msgstr ""
414
415 #. SRC END
416 #. type: SH
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "SEE ALSO"
421 msgstr "VEJA TAMBÉM"
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, fuzzy
427 #| msgid "B<strncpy>(3)"
428 msgid "B<wcpncpy>(3), B<string_copying>(7)"
429 msgstr "B<strncpy>(3)"
430
431 #. type: TH
432 #: debian-trixie
433 #, no-wrap
434 msgid "2024-06-15"
435 msgstr "15 junho 2024"
436
437 #. type: TH
438 #: debian-trixie
439 #, no-wrap
440 msgid "Linux man-pages 6.9.1"
441 msgstr "Linux man-pages 6.9.1"
442
443 #. type: Plain text
444 #: debian-trixie
445 msgid "Standard C library (I<libc>, I<-lc>)"
446 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
447
448 #. type: Plain text
449 #: debian-trixie fedora-44 fedora-rawhide
450 #, no-wrap
451 msgid ""
452 "B<char *strncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n"
453 "B< size_t >I<dsize>B<);>\n"
454 "B<char *stpncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n"
455 "B< size_t >I<dsize>B<);>\n"
456 msgstr ""
457
458 #. type: Plain text
459 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
460 msgid "An implementation of these functions might be:"
461 msgstr ""
462
463 #. type: Plain text
464 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
465 #, fuzzy, no-wrap
466 #| msgid "B<char *stpncpy (char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
467 msgid ""
468 "char *\n"
469 "strncpy(char *restrict dst, const char *restrict src, size_t dsize)\n"
470 "{\n"
471 " stpncpy(dst, src, dsize);\n"
472 " return dst;\n"
473 "}\n"
474 "\\&\n"
475 "char *\n"
476 "stpncpy(char *restrict dst, const char *restrict src, size_t dsize)\n"
477 "{\n"
478 " size_t dlen;\n"
479 "\\&\n"
480 " dlen = strnlen(src, dsize);\n"
481 " return memset(mempcpy(dst, src, dlen), 0, dsize - dlen);\n"
482 "}\n"
483 msgstr "B<char *stpncpy (char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
484
485 #. type: Plain text
486 #: debian-trixie fedora-44 fedora-rawhide
487 msgid ""
488 "returns a pointer to one after the last character in the destination "
489 "character sequence."
490 msgstr ""
491
492 #. type: TH
493 #: fedora-44 fedora-rawhide
494 #, no-wrap
495 msgid "2024-07-23"
496 msgstr "23 julho 2024"
497
498 #. type: TH
499 #: fedora-44 fedora-rawhide
500 #, no-wrap
501 msgid "Linux man-pages 6.13"
502 msgstr "Linux man-pages 6.13"
503
504 #. type: TH
505 #: mageia-cauldron
506 #, no-wrap
507 msgid "2026-01-06"
508 msgstr "6 janeiro 2026"
509
510 #. type: TH
511 #: mageia-cauldron
512 #, no-wrap
513 msgid "Linux man-pages 6.17"
514 msgstr "Linux man-pages 6.17"
515
516 #. type: TH
517 #: opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "Linux man-pages (unreleased)"
520 msgstr "Linux man-pages (não lançado)"