Debian Codegraph @

po/pt_BR/man3/strcpy.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 # Marcelo M. de Abreu <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
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: 2001-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 #, no-wrap
25 msgid "strcpy"
26 msgstr ""
27
28 #. type: TH
29 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-25"
32 msgstr "25 fevereiro 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOME"
47
48 #. type: Plain text
49 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
50 #, fuzzy
51 #| msgid "strcpy, strncpy - copy a string"
52 msgid "strcpy, strcat - copy or catenate a string"
53 msgstr "strcpy, strncpy - copia uma sequência de caractere"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>string.hE<gt>>\n"
80 msgstr "B<#include E<lt>string.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
84 #, fuzzy, no-wrap
85 #| msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
86 msgid ""
87 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
88 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
89 msgstr "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
90
91 #. type: SH
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "DESCRIPTION"
96 msgstr "DESCRIÇÃO"
97
98 #. type: TP
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, fuzzy, no-wrap
102 #| msgid "B<strip>"
103 msgid "B<strcpy>()"
104 msgstr "B<strip>"
105
106 #. type: Plain text
107 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "This function copies the string pointed to by I<src>, into a string at the "
110 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
111 "destination buffer large enough, that is, I<strlen(src) + 1>."
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
116 #, fuzzy
117 #| msgid "is equivalent to"
118 msgid "It is equivalent to"
119 msgstr "é equivalente a"
120
121 #. type: Plain text
122 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid "stpcpy(dst, src), dst\n"
125 msgstr ""
126
127 #. #-#-#-#-# archlinux: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
128 #. type: TP
129 #. #-#-#-#-# debian-trixie: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
130 #. type: TQ
131 #. #-#-#-#-# debian-unstable: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
132 #. type: TP
133 #. #-#-#-#-# fedora-44: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
134 #. type: TQ
135 #. #-#-#-#-# fedora-rawhide: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
136 #. type: TQ
137 #. #-#-#-#-# mageia-cauldron: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
138 #. type: TQ
139 #. #-#-#-#-# opensuse-leap-16-1: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
140 #. type: TP
141 #. #-#-#-#-# opensuse-tumbleweed: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
142 #. type: TP
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, fuzzy, no-wrap
146 #| msgid "B<status>"
147 msgid "B<strcat>()"
148 msgstr "B<status>"
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "This function catenates the string pointed to by I<src>, after the string "
155 "pointed to by I<dst> (overwriting its terminating null byte). The "
156 "programmer is responsible for allocating a destination buffer large enough, "
157 "that is, I<strlen(dst) + strlen(src) + 1>."
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "stpcpy(strnul(dst), src), dst\n"
164 msgstr ""
165
166 #. type: SH
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "RETURN VALUE"
171 msgstr "VALOR DE RETORNO"
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, fuzzy
177 #| msgid "These functions do not set I<errno>."
178 msgid "These functions return I<dst>."
179 msgstr "Estas funções não definem I<errno>."
180
181 #. type: SH
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "ATTRIBUTES"
186 msgstr "ATRIBUTOS"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "For an explanation of the terms used in this section, see B<attributes>(7)."
193 msgstr ""
194 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
195
196 #. type: tbl table
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "Interface"
201 msgstr "Interface"
202
203 #. type: tbl table
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "Attribute"
208 msgstr "Atributo"
209
210 #. type: tbl table
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "Value"
215 msgstr "Valor"
216
217 #. type: tbl table
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid ".na\n"
222 msgstr ".na\n"
223
224 #. type: tbl table
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid ".nh\n"
229 msgstr ".nh\n"
230
231 #. type: tbl table
232 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
233 #, fuzzy, no-wrap
234 #| msgid ""
235 #| "B<strcpy>(),\n"
236 #| "B<strncpy>()"
237 msgid ""
238 "B<strcpy>(),\n"
239 "B<strcat>()"
240 msgstr ""
241 "B<strcpy>(),\n"
242 "B<strncpy>()"
243
244 #. type: tbl table
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "Thread safety"
249 msgstr "Thread safety"
250
251 #. type: tbl table
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "MT-Safe"
256 msgstr "MT-Safe"
257
258 #. type: SH
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "STANDARDS"
263 msgstr "PADRÕES"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid "C11, POSIX.1-2008."
269 msgstr "C11, POSIX.1-2008."
270
271 #. type: SH
272 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "HISTORY"
275 msgstr "HISTÓRICO"
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
281 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
282
283 #. type: SH
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "CAVEATS"
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, fuzzy
294 #| msgid "The strings may not overlap."
295 msgid "The strings I<src> and I<dst> may not overlap."
296 msgstr "As strings não podem se sobrepor."
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "If the destination buffer is not large enough, the behavior is undefined. "
303 "See B<_FORTIFY_SOURCE> in B<feature_test_macros>(7)."
304 msgstr ""
305
306 #. type: Plain text
307 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
308 #: opensuse-tumbleweed
309 msgid ""
310 "B<strcat>() can be very inefficient. Read about E<.UR https:\\://"
311 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
312 "painter E<.UE .>"
313 msgstr ""
314
315 #. type: SH
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid "EXAMPLES"
320 msgstr "EXEMPLOS"
321
322 #. type: Plain text
323 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid ""
326 "#include E<lt>err.hE<gt>\n"
327 "#include E<lt>stdio.hE<gt>\n"
328 "#include E<lt>stdlib.hE<gt>\n"
329 "#include E<lt>string.hE<gt>\n"
330 "\\&\n"
331 "int\n"
332 "main(void)\n"
333 "{\n"
334 " char *buf1;\n"
335 " size_t len, size;\n"
336 "\\&\n"
337 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
338 " buf1 = malloc(sizeof(*buf1) * size);\n"
339 " if (buf1 == NULL)\n"
340 " err(EXIT_FAILURE, \"malloc()\");\n"
341 "\\&\n"
342 " strcpy(buf1, \"Hello \");\n"
343 " strcat(buf1, \"world\");\n"
344 " strcat(buf1, \"!\");\n"
345 " len = strlen(buf1);\n"
346 "\\&\n"
347 " printf(\"[len = %zu]: \", len);\n"
348 " puts(buf1); // \"Hello world!\"\n"
349 " free(buf1);\n"
350 "\\&\n"
351 " exit(EXIT_SUCCESS);\n"
352 "}\n"
353 msgstr ""
354
355 #. SRC END
356 #. type: SH
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "SEE ALSO"
361 msgstr "VEJA TAMBÉM"
362
363 #. type: Plain text
364 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
365 #, fuzzy
366 #| msgid ""
367 #| "B<ceil>(3), B<floor>(3), B<lrint>(3), B<nearbyint>(3), B<rint>(3), "
368 #| "B<round>(3)"
369 msgid ""
370 "B<stpcpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
371 msgstr ""
372 "B<ceil>(3), B<floor>(3), B<lrint>(3), B<nearbyint>(3), B<rint>(3), "
373 "B<round>(3)"
374
375 #. type: TH
376 #: debian-trixie
377 #, no-wrap
378 msgid "2024-06-15"
379 msgstr "15 junho 2024"
380
381 #. type: TH
382 #: debian-trixie
383 #, no-wrap
384 msgid "Linux man-pages 6.9.1"
385 msgstr "Linux man-pages 6.9.1"
386
387 #. type: Plain text
388 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
389 #, fuzzy
390 #| msgid "strcpy, strncpy - copy a string"
391 msgid "stpcpy, strcpy, strcat - copy or catenate a string"
392 msgstr "strcpy, strncpy - copia uma sequência de caractere"
393
394 #. type: Plain text
395 #: debian-trixie
396 msgid "Standard C library (I<libc>, I<-lc>)"
397 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
398
399 #. type: Plain text
400 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
401 #, fuzzy, no-wrap
402 #| msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
403 msgid ""
404 "B<char *stpcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
405 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
406 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
407 msgstr "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
408
409 #. type: Plain text
410 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
411 msgid ""
412 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
413 msgstr ""
414 "Requisitos de macro de teste de recursos para o glibc (consulte "
415 "B<feature_test_macros>(7)):"
416
417 #. type: Plain text
418 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
419 #, fuzzy
420 #| msgid "B<strip>"
421 msgid "B<stpcpy>():"
422 msgstr "B<strip>"
423
424 #. type: Plain text
425 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
426 #, no-wrap
427 msgid ""
428 " Since glibc 2.10:\n"
429 " _POSIX_C_SOURCE E<gt>= 200809L\n"
430 " Before glibc 2.10:\n"
431 " _GNU_SOURCE\n"
432 msgstr ""
433 " Desde o glibc 2.10:\n"
434 " _POSIX_C_SOURCE E<gt>= 200809L\n"
435 " Antes do glibc 2.10:\n"
436 " _GNU_SOURCE\n"
437
438 #. type: TP
439 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
440 #, fuzzy, no-wrap
441 #| msgid "B<strip>"
442 msgid "B<stpcpy>()"
443 msgstr "B<strip>"
444
445 #. type: Plain text
446 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
447 msgid ""
448 "These functions copy the string pointed to by I<src>, into a string at the "
449 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
450 "destination buffer large enough, that is, I<strlen(src) + 1>. For the "
451 "difference between the two functions, see RETURN VALUE."
452 msgstr ""
453
454 #. type: Plain text
455 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
456 msgid "An implementation of these functions might be:"
457 msgstr ""
458
459 #. type: Plain text
460 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
461 #, no-wrap
462 msgid ""
463 "char *\n"
464 "stpcpy(char *restrict dst, const char *restrict src)\n"
465 "{\n"
466 " char *p;\n"
467 "\\&\n"
468 " p = mempcpy(dst, src, strlen(src));\n"
469 " *p = \\[aq]\\[rs]0\\[aq];\n"
470 "\\&\n"
471 " return p;\n"
472 "}\n"
473 "\\&\n"
474 "char *\n"
475 "strcpy(char *restrict dst, const char *restrict src)\n"
476 "{\n"
477 " stpcpy(dst, src);\n"
478 " return dst;\n"
479 "}\n"
480 "\\&\n"
481 "char *\n"
482 "strcat(char *restrict dst, const char *restrict src)\n"
483 "{\n"
484 " stpcpy(dst + strlen(dst), src);\n"
485 " return dst;\n"
486 "}\n"
487 msgstr ""
488
489 #. type: Plain text
490 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
491 msgid ""
492 "This function returns a pointer to the terminating null byte of the copied "
493 "string."
494 msgstr ""
495
496 #. type: tbl table
497 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
498 #, fuzzy, no-wrap
499 #| msgid ""
500 #| "B<strcpy>(),\n"
501 #| "B<strncpy>()"
502 msgid ""
503 "B<stpcpy>(),\n"
504 "B<strcpy>(),\n"
505 "B<strcat>()"
506 msgstr ""
507 "B<strcpy>(),\n"
508 "B<strncpy>()"
509
510 #. type: Plain text
511 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
512 msgid "POSIX.1-2008."
513 msgstr "POSIX.1-2008."
514
515 #. type: Plain text
516 #: debian-trixie fedora-44 fedora-rawhide
517 msgid ""
518 "B<strcat>() can be very inefficient. Read about E<.UR https://"
519 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
520 "painter E<.UE .>"
521 msgstr ""
522
523 #. type: Plain text
524 #: debian-trixie
525 #, no-wrap
526 msgid ""
527 "#include E<lt>err.hE<gt>\n"
528 "#include E<lt>stdio.hE<gt>\n"
529 "#include E<lt>stdlib.hE<gt>\n"
530 "#include E<lt>string.hE<gt>\n"
531 "\\&\n"
532 "int\n"
533 "main(void)\n"
534 "{\n"
535 " char *p;\n"
536 " char *buf1;\n"
537 " char *buf2;\n"
538 " size_t len, maxsize;\n"
539 "\\&\n"
540 " maxsize = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
541 " buf1 = malloc(sizeof(*buf1) * maxsize);\n"
542 " if (buf1 == NULL)\n"
543 " err(EXIT_FAILURE, \"malloc()\");\n"
544 " buf2 = malloc(sizeof(*buf2) * maxsize);\n"
545 " if (buf2 == NULL)\n"
546 " err(EXIT_FAILURE, \"malloc()\");\n"
547 "\\&\n"
548 " p = buf1;\n"
549 " p = stpcpy(p, \"Hello \");\n"
550 " p = stpcpy(p, \"world\");\n"
551 " p = stpcpy(p, \"!\");\n"
552 " len = p - buf1;\n"
553 "\\&\n"
554 " printf(\"[len = %zu]: \", len);\n"
555 " puts(buf1); // \"Hello world!\"\n"
556 " free(buf1);\n"
557 "\\&\n"
558 " strcpy(buf2, \"Hello \");\n"
559 " strcat(buf2, \"world\");\n"
560 " strcat(buf2, \"!\");\n"
561 " len = strlen(buf2);\n"
562 "\\&\n"
563 " printf(\"[len = %zu]: \", len);\n"
564 " puts(buf2); // \"Hello world!\"\n"
565 " free(buf2);\n"
566 "\\&\n"
567 " exit(EXIT_SUCCESS);\n"
568 "}\n"
569 msgstr ""
570
571 #. type: Plain text
572 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
573 msgid "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
574 msgstr ""
575
576 #. type: TH
577 #: fedora-44 fedora-rawhide
578 #, no-wrap
579 msgid "2024-11-17"
580 msgstr "17 novembro 2024"
581
582 #. type: TH
583 #: fedora-44 fedora-rawhide
584 #, no-wrap
585 msgid "Linux man-pages 6.13"
586 msgstr "Linux man-pages 6.13"
587
588 #. type: Plain text
589 #: fedora-44 fedora-rawhide mageia-cauldron
590 #, no-wrap
591 msgid ""
592 "#include E<lt>err.hE<gt>\n"
593 "#include E<lt>stdio.hE<gt>\n"
594 "#include E<lt>stdlib.hE<gt>\n"
595 "#include E<lt>string.hE<gt>\n"
596 "\\&\n"
597 "int\n"
598 "main(void)\n"
599 "{\n"
600 " char *p;\n"
601 " char *buf1;\n"
602 " char *buf2;\n"
603 " size_t len, size;\n"
604 "\\&\n"
605 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
606 " buf1 = malloc(sizeof(*buf1) * size);\n"
607 " if (buf1 == NULL)\n"
608 " err(EXIT_FAILURE, \"malloc()\");\n"
609 " buf2 = malloc(sizeof(*buf2) * size);\n"
610 " if (buf2 == NULL)\n"
611 " err(EXIT_FAILURE, \"malloc()\");\n"
612 "\\&\n"
613 " p = buf1;\n"
614 " p = stpcpy(p, \"Hello \");\n"
615 " p = stpcpy(p, \"world\");\n"
616 " p = stpcpy(p, \"!\");\n"
617 " len = p - buf1;\n"
618 "\\&\n"
619 " printf(\"[len = %zu]: \", len);\n"
620 " puts(buf1); // \"Hello world!\"\n"
621 " free(buf1);\n"
622 "\\&\n"
623 " strcpy(buf2, \"Hello \");\n"
624 " strcat(buf2, \"world\");\n"
625 " strcat(buf2, \"!\");\n"
626 " len = strlen(buf2);\n"
627 "\\&\n"
628 " printf(\"[len = %zu]: \", len);\n"
629 " puts(buf2); // \"Hello world!\"\n"
630 " free(buf2);\n"
631 "\\&\n"
632 " exit(EXIT_SUCCESS);\n"
633 "}\n"
634 msgstr ""
635
636 #. type: TH
637 #: mageia-cauldron
638 #, no-wrap
639 msgid "2025-12-25"
640 msgstr "25 dezembro 2025"
641
642 #. type: TH
643 #: mageia-cauldron
644 #, no-wrap
645 msgid "Linux man-pages 6.17"
646 msgstr "Linux man-pages 6.17"
647
648 #. type: TH
649 #: opensuse-leap-16-1 opensuse-tumbleweed
650 #, no-wrap
651 msgid "Linux man-pages (unreleased)"
652 msgstr "Linux man-pages (não lançado)"