Debian Codegraph @

po/pt_BR/archive/man3/strcat.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: 2023-08-27 17:24+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 <[email protected]."
13 "org>\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 #: opensuse-leap-15-6
23 #, no-wrap
24 msgid "STRCAT"
25 msgstr "STRCAT"
26
27 #. type: TH
28 #: opensuse-leap-15-6
29 #, no-wrap
30 msgid "2017-09-15"
31 msgstr "15 setembro 2017"
32
33 #. type: TH
34 #: opensuse-leap-15-6
35 #, no-wrap
36 msgid "GNU"
37 msgstr "GNU"
38
39 #. type: TH
40 #: opensuse-leap-15-6
41 #, no-wrap
42 msgid "Linux Programmer's Manual"
43 msgstr "Manual do Programador do Linux"
44
45 #. type: SH
46 #: opensuse-leap-15-6
47 #, no-wrap
48 msgid "NAME"
49 msgstr "NOME"
50
51 #. type: Plain text
52 #: opensuse-leap-15-6
53 msgid "strcat, strncat - concatenate two strings"
54 msgstr "strcat, strncat - concatena duas seqëncias de caracteres"
55
56 #. type: SH
57 #: opensuse-leap-15-6
58 #, no-wrap
59 msgid "SYNOPSIS"
60 msgstr "SINOPSE"
61
62 #. type: Plain text
63 #: opensuse-leap-15-6
64 #, no-wrap
65 msgid "B<#include E<lt>string.hE<gt>>\n"
66 msgstr "B<#include E<lt>string.hE<gt>>\n"
67
68 #. type: Plain text
69 #: opensuse-leap-15-6
70 #, no-wrap
71 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
72 msgstr "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
73
74 #. type: Plain text
75 #: opensuse-leap-15-6
76 #, no-wrap
77 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
78 msgstr "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
79
80 #. type: SH
81 #: opensuse-leap-15-6
82 #, no-wrap
83 msgid "DESCRIPTION"
84 msgstr "DESCRIÇÃO"
85
86 #. type: Plain text
87 #: opensuse-leap-15-6
88 #, fuzzy
89 #| msgid ""
90 #| "The B<strcat()> function appends the I<src> string to the I<dest> string "
91 #| "overwriting the `\\e0' character at the end of I<dest>, and then adds a "
92 #| "terminating `\\e0' character. The strings may not overlap, and the "
93 #| "I<dest> string must have enough space for the result."
94 msgid ""
95 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
96 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
97 "I<dest>, and then adds a terminating null byte. The strings may not "
98 "overlap, and the I<dest> string must have enough space for the result. If "
99 "I<dest> is not large enough, program behavior is unpredictable; I<buffer "
100 "overruns are a favorite avenue for attacking secure programs>."
101 msgstr ""
102 "A função B<strcat()> acrescenta a seqüencia I<org> à seqüencia I<dest>, "
103 "sobrescrevendo o caractere `\\e0' ao fim de I<dest>, e então adiciona um "
104 "caractere terminador `\\e0'. As seqüencias não devem se sobrepor e a "
105 "seqüencia I<dest> deve ter espaço suficiente para o resultado."
106
107 #. type: Plain text
108 #: opensuse-leap-15-6
109 msgid "The B<strncat>() function is similar, except that"
110 msgstr ""
111
112 #. type: IP
113 #: opensuse-leap-15-6
114 #, no-wrap
115 msgid "*"
116 msgstr "*"
117
118 #. type: Plain text
119 #: opensuse-leap-15-6
120 msgid "it will use at most I<n> bytes from I<src>; and"
121 msgstr ""
122
123 #. type: Plain text
124 #: opensuse-leap-15-6
125 msgid ""
126 "I<src> does not need to be null-terminated if it contains I<n> or more bytes."
127 msgstr ""
128
129 #. type: Plain text
130 #: opensuse-leap-15-6
131 msgid ""
132 "As with B<strcat>(), the resulting string in I<dest> is always null-"
133 "terminated."
134 msgstr ""
135
136 #. type: Plain text
137 #: opensuse-leap-15-6
138 msgid ""
139 "If I<src> contains I<n> or more bytes, B<strncat>() writes I<n+1> bytes to "
140 "I<dest> (I<n> from I<src> plus the terminating null byte). Therefore, the "
141 "size of I<dest> must be at least I<strlen(dest)+n+1>."
142 msgstr ""
143
144 #. type: Plain text
145 #: opensuse-leap-15-6
146 msgid "A simple implementation of B<strncat>() might be:"
147 msgstr ""
148
149 #. type: Plain text
150 #: opensuse-leap-15-6
151 #, no-wrap
152 msgid ""
153 "char *\n"
154 "strncat(char *dest, const char *src, size_t n)\n"
155 "{\n"
156 " size_t dest_len = strlen(dest);\n"
157 " size_t i;\n"
158 msgstr ""
159 "char *\n"
160 "strncat(char *dest, const char *src, size_t n)\n"
161 "{\n"
162 " size_t dest_len = strlen(dest);\n"
163 " size_t i;\n"
164
165 #. type: Plain text
166 #: opensuse-leap-15-6
167 #, no-wrap
168 msgid ""
169 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
170 " dest[dest_len + i] = src[i];\n"
171 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
172 msgstr ""
173 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
174 " dest[dest_len + i] = src[i];\n"
175 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
176
177 #. type: Plain text
178 #: opensuse-leap-15-6
179 #, no-wrap
180 msgid ""
181 " return dest;\n"
182 "}\n"
183 msgstr ""
184 " return dest;\n"
185 "}\n"
186
187 #. type: SH
188 #: opensuse-leap-15-6
189 #, no-wrap
190 msgid "RETURN VALUE"
191 msgstr "VALOR DE RETORNO"
192
193 #. type: Plain text
194 #: opensuse-leap-15-6
195 msgid ""
196 "The B<strcat>() and B<strncat>() functions return a pointer to the "
197 "resulting string I<dest>."
198 msgstr ""
199 "As funções B<strcat>() e B<strncat>() retornam um ponteiro para a seqüencia "
200 "resultante I<dest>."
201
202 #. type: SH
203 #: opensuse-leap-15-6
204 #, no-wrap
205 msgid "ATTRIBUTES"
206 msgstr "ATRIBUTOS"
207
208 #. type: Plain text
209 #: opensuse-leap-15-6
210 msgid ""
211 "For an explanation of the terms used in this section, see B<attributes>(7)."
212 msgstr ""
213 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
214
215 #. type: tbl table
216 #: opensuse-leap-15-6
217 #, no-wrap
218 msgid "Interface"
219 msgstr "Interface"
220
221 #. type: tbl table
222 #: opensuse-leap-15-6
223 #, no-wrap
224 msgid "Attribute"
225 msgstr "Atributo"
226
227 #. type: tbl table
228 #: opensuse-leap-15-6
229 #, no-wrap
230 msgid "Value"
231 msgstr "Valor"
232
233 #. type: tbl table
234 #: opensuse-leap-15-6
235 #, no-wrap
236 msgid ""
237 "B<strcat>(),\n"
238 "B<strncat>()"
239 msgstr ""
240 "B<strcat>(),\n"
241 "B<strncat>()"
242
243 #. type: tbl table
244 #: opensuse-leap-15-6
245 #, no-wrap
246 msgid "Thread safety"
247 msgstr "Thread safety"
248
249 #. type: tbl table
250 #: opensuse-leap-15-6
251 #, no-wrap
252 msgid "MT-Safe"
253 msgstr "MT-Safe"
254
255 #. type: SH
256 #: opensuse-leap-15-6
257 #, no-wrap
258 msgid "CONFORMING TO"
259 msgstr "DE ACORDO COM"
260
261 #. type: Plain text
262 #: opensuse-leap-15-6
263 msgid "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
264 msgstr "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
265
266 #. type: SH
267 #: opensuse-leap-15-6
268 #, no-wrap
269 msgid "NOTES"
270 msgstr "NOTAS"
271
272 #. type: Plain text
273 #: opensuse-leap-15-6
274 msgid ""
275 "Some systems (the BSDs, Solaris, and others) provide the following function:"
276 msgstr ""
277
278 #. type: Plain text
279 #: opensuse-leap-15-6
280 #, no-wrap
281 msgid " size_t strlcat(char *dest, const char *src, size_t size);\n"
282 msgstr " size_t strlcat(char *dest, const char *src, size_t size);\n"
283
284 #. https://lwn.net/Articles/506530/
285 #. type: Plain text
286 #: opensuse-leap-15-6
287 msgid ""
288 "This function appends the null-terminated string I<src> to the string "
289 "I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a "
290 "terminating null byte to the result, I<unless> I<size> is less than "
291 "I<strlen(dest)>. This function fixes the buffer overrun problem of "
292 "B<strcat>(), but the caller must still handle the possibility of data loss "
293 "if I<size> is too small. The function returns the length of the string "
294 "B<strlcat>() tried to create; if the return value is greater than or equal "
295 "to I<size>, data loss occurred. If data loss matters, the caller I<must> "
296 "either check the arguments before the call, or test the function return "
297 "value. B<strlcat>() is not present in glibc and is not standardized by "
298 "POSIX, but is available on Linux via the I<libbsd> library."
299 msgstr ""
300
301 #. type: SH
302 #: opensuse-leap-15-6
303 #, no-wrap
304 msgid "EXAMPLE"
305 msgstr "EXEMPLO"
306
307 #. type: Plain text
308 #: opensuse-leap-15-6
309 msgid ""
310 "Because B<strcat>() and B<strncat>() must find the null byte that "
311 "terminates the string I<dest> using a search that starts at the beginning of "
312 "the string, the execution time of these functions scales according to the "
313 "length of the string I<dest>. This can be demonstrated by running the "
314 "program below. (If the goal is to concatenate many strings to one target, "
315 "then manually copying the bytes from each source string while maintaining a "
316 "pointer to the end of the target string will provide better performance.)"
317 msgstr ""
318
319 #. type: SS
320 #: opensuse-leap-15-6
321 #, no-wrap
322 msgid "Program source"
323 msgstr "Fonte do programa"
324
325 #. type: Plain text
326 #: opensuse-leap-15-6
327 #, no-wrap
328 msgid ""
329 "#include E<lt>string.hE<gt>\n"
330 "#include E<lt>time.hE<gt>\n"
331 "#include E<lt>stdio.hE<gt>\n"
332 msgstr ""
333 "#include E<lt>string.hE<gt>\n"
334 "#include E<lt>time.hE<gt>\n"
335 "#include E<lt>stdio.hE<gt>\n"
336
337 #. type: Plain text
338 #: opensuse-leap-15-6
339 #, fuzzy, no-wrap
340 #| msgid ""
341 #| "int\n"
342 #| "main(int argc, char *argv[])\n"
343 #| "{\n"
344 #| " int res;\n"
345 msgid ""
346 "int\n"
347 "main(int argc, char *argv[])\n"
348 "{\n"
349 "#define LIM 4000000\n"
350 " int j;\n"
351 " char p[LIM];\n"
352 " time_t base;\n"
353 msgstr ""
354 "int\n"
355 "main(int argc, char *argv[])\n"
356 "{\n"
357 " int res;\n"
358
359 #. type: Plain text
360 #: opensuse-leap-15-6
361 #, no-wrap
362 msgid ""
363 " base = time(NULL);\n"
364 " p[0] = \\(aq\\e0\\(aq;\n"
365 msgstr ""
366 " base = time(NULL);\n"
367 " p[0] = \\(aq\\e0\\(aq;\n"
368
369 #. type: Plain text
370 #: opensuse-leap-15-6
371 #, no-wrap
372 msgid ""
373 " for (j = 0; j E<lt> LIM; j++) {\n"
374 " if ((j % 10000) == 0)\n"
375 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
376 " strcat(p, \"a\");\n"
377 " }\n"
378 "}\n"
379 msgstr ""
380 " for (j = 0; j E<lt> LIM; j++) {\n"
381 " if ((j % 10000) == 0)\n"
382 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
383 " strcat(p, \"a\");\n"
384 " }\n"
385 "}\n"
386
387 #. type: SH
388 #: opensuse-leap-15-6
389 #, no-wrap
390 msgid "SEE ALSO"
391 msgstr "VEJA TAMBÉM"
392
393 #. type: Plain text
394 #: opensuse-leap-15-6
395 msgid ""
396 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
397 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
398 msgstr ""
399 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
400 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
401
402 #. type: SH
403 #: opensuse-leap-15-6
404 #, no-wrap
405 msgid "COLOPHON"
406 msgstr "COLOFÃO"
407
408 #. type: Plain text
409 #: opensuse-leap-15-6
410 msgid ""
411 "This page is part of release 4.16 of the Linux I<man-pages> project. A "
412 "description of the project, information about reporting bugs, and the latest "
413 "version of this page, can be found at \\%https://www.kernel.org/doc/man-"
414 "pages/."
415 msgstr ""
416 "Esta página faz parte da versão 4.16 do projeto Linux I<man-pages>. Uma "
417 "descrição do projeto, informações sobre relatórios de bugs e a versão mais "
418 "recente desta página podem ser encontradas em \\%https://www.kernel.org/doc/"
419 "man-pages/."