Debian Codegraph @

po/pt_BR/man3/stdarg.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 # Valter Ferraz Sanches <[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 "stdarg"
26 msgstr ""
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2025-05-17"
33 msgstr "17 maio 2025"
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 "stdarg, va_start, va_arg, va_end, va_copy - variable argument lists"
53 msgstr ""
54 "stdarg, va_start, va_arg, va_end, va_copy - listas variáveis de argumentos"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTECA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINOPSE"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>stdarg.hE<gt>>\n"
81 msgstr "B<#include E<lt>stdarg.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<void va_start(va_list >I<ap>B<, >I<last>B<);>\n"
89 "I<type>B< va_arg(va_list >I<ap>B<, >I<type>B<);>\n"
90 "B<void va_end(va_list >I<ap>B<);>\n"
91 "B<void va_copy(va_list >I<dest>B<, va_list >I<src>B<);>\n"
92 msgstr ""
93
94 #. type: SH
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid "DESCRIPTION"
99 msgstr "DESCRIÇÃO"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "A function may be called with a varying number of arguments of varying "
106 "types. The include file I<E<lt>stdarg.hE<gt>> declares a type I<va_list> "
107 "and defines three macros for stepping through a list of arguments whose "
108 "number and types are not known to the called function."
109 msgstr ""
110 "Uma função pode ser chamada com um número variado de argumentos de tipos "
111 "variados. O arquivo include I<E<lt>stdarg.hE<gt>> declara um tipo I<va_list> "
112 "e define três macros para caminhar através de uma lista de argumentos cujo "
113 "número e tipo são desconhecidos pela função chamada."
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "The called function must declare an object of type I<va_list> which is used "
120 "by the macros B<va_start>(), B<va_arg>(), and B<va_end>()."
121 msgstr ""
122 "A função chamada deve declarar um objeto do tipo I<va_list> o qual é usado "
123 "pelas macros B<va_start>(), B<va_arg>() e B<va_end>()."
124
125 #. type: SS
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "va_start()"
130 msgstr "va_start()"
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "The B<va_start>() macro initializes I<ap> for subsequent use by "
137 "B<va_arg>() and B<va_end>(), and must be called first."
138 msgstr ""
139 "A macro B<va_start>() inicializa I<ap> para uso subsequente por B<va_arg>() "
140 "e B<va_end>(), e deve ser chamada primeiro."
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, fuzzy
146 #| msgid ""
147 #| "The parameter I<last> is the name of the last parameter before the "
148 #| "variable argument list, i.e., the last parameter of which the calling "
149 #| "function knows the type."
150 msgid ""
151 "The argument I<last> is the name of the last argument before the variable "
152 "argument list, that is, the last argument of which the calling function "
153 "knows the type."
154 msgstr ""
155 "O parâmetro I<last> é o nome do último parâmetro antes da lista de "
156 "argumentos variável, i.e., o último parâmetro do qual a função chamada "
157 "conhece o tipo."
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, fuzzy
163 #| msgid ""
164 #| "Because the address of this parameter is used in the B<va_start> macro, "
165 #| "it should not be declared as a register variable, or as a function or an "
166 #| "array type."
167 msgid ""
168 "Because the address of this argument may be used in the B<va_start>() "
169 "macro, it should not be declared as a register variable, or as a function or "
170 "an array type."
171 msgstr ""
172 "Por causa do endereço desse parâmetro, é usada na macro B<va_start>, ela não "
173 "deve ser declarada como uma variável de registro ou como um tipo de função "
174 "ou matriz."
175
176 #. type: SS
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 #, no-wrap
180 msgid "va_arg()"
181 msgstr "va_arg()"
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, fuzzy
187 #| msgid ""
188 #| "The B<va_arg> macro expands to an expression that has the type and value "
189 #| "of the next argument in the call. The parameter I<ap> is the "
190 #| "B<va_list>I< >B<ap> initialized by B<va_start>. Each call to B<va_arg> "
191 #| "modifies I<ap> so that the next call returns the next argument. The "
192 #| "parameter I<type> is a type name specified so that the type of a pointer "
193 #| "to an object that has the specified type can be obtained simply by adding "
194 #| "a * to I<type>."
195 msgid ""
196 "The B<va_arg>() macro expands to an expression that has the type and value "
197 "of the next argument in the call. The argument I<ap> is the I<va_list> "
198 "I<ap> initialized by B<va_start>(). Each call to B<va_arg>() modifies "
199 "I<ap> so that the next call returns the next argument. The argument I<type> "
200 "is a type name specified so that the type of a pointer to an object that has "
201 "the specified type can be obtained simply by adding a * to I<type>."
202 msgstr ""
203 "A macro B<va_arg> expande para uma expressão que possui o tipo e valor do "
204 "próximo argumento na chamada. O parâmetro B<va_list>I< >B<ap> inicializado "
205 "po B<va_start>. Cada chamada a B<va_arg> modifica I<ap> de modo que a "
206 "chamada seguinte retorna o argumento seguinte. O parâmetro I<type> é um nome "
207 "de tipo especificado de maneira que o tipo de ponteiro para um objeto que "
208 "possui o tipo especificado possa ser obtido simplesmente adicionando-se um * "
209 "a I<type>."
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "The first use of the B<va_arg>() macro after that of the B<va_start>() "
216 "macro returns the argument after I<last>. Successive invocations return the "
217 "values of the remaining arguments."
218 msgstr ""
219 "O primeiro uso da macro B<va_arg>() após o da macro B<va_start>() retorna o "
220 "argumento após I<last>. Invocações sucessivas retornam os valores dos "
221 "argumentos restantes."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "If there is no next argument, or if I<type> is not compatible with the type "
228 "of the actual next argument (as promoted according to the default argument "
229 "promotions), random errors will occur."
230 msgstr ""
231 "Se não houver um argumento seguinte ou se I<type> não é compatível com o "
232 "tipo do argumento seguinte real (promovido de acordo com as promoções padrão "
233 "de argumentos), erros aleatórios ocorrerão."
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "If I<ap> is passed to a function that uses B<va_arg(>I<ap>B<,>I<type>B<),> "
240 "then the value of I<ap> is undefined after the return of that function."
241 msgstr ""
242
243 #. type: SS
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "va_end()"
248 msgstr "va_end()"
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "Each invocation of B<va_start>() must be matched by a corresponding "
255 "invocation of B<va_end>() in the same function. After the call "
256 "B<va_end(>I<ap>B<)> the variable I<ap> is undefined. Multiple traversals of "
257 "the list, each bracketed by B<va_start>() and B<va_end>() are possible. "
258 "B<va_end>() may be a macro or a function."
259 msgstr ""
260
261 #. type: SS
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "va_copy()"
266 msgstr "va_copy()"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "The B<va_copy>() macro copies the (previously initialized) variable "
273 "argument list I<src> to I<dest>. The behavior is as if B<va_start>() were "
274 "applied to I<dest> with the same I<last> argument, followed by the same "
275 "number of B<va_arg>() invocations that was used to reach the current state "
276 "of I<src>."
277 msgstr ""
278
279 #. Proposal from [email protected], 1997-02-28
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "An obvious implementation would have a I<va_list> be a pointer to the stack "
285 "frame of the variadic function. In such a setup (by far the most common) "
286 "there seems nothing against an assignment"
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "va_list aq = ap;\n"
294 msgstr "va_list aq = ap;\n"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "Unfortunately, there are also systems that make it an array of pointers (of "
301 "length 1), and there one needs"
302 msgstr ""
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid ""
309 "va_list aq;\n"
310 "*aq = *ap;\n"
311 msgstr ""
312 "va_list aq;\n"
313 "*aq = *ap;\n"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "Finally, on systems where arguments are passed in registers, it may be "
320 "necessary for B<va_start>() to allocate memory, store the arguments there, "
321 "and also an indication of which argument is next, so that B<va_arg>() can "
322 "step through the list. Now B<va_end>() can free the allocated memory "
323 "again. To accommodate this situation, C99 adds a macro B<va_copy>(), so "
324 "that the above assignment can be replaced by"
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid ""
332 "va_list aq;\n"
333 "va_copy(aq, ap);\n"
334 "\\&...\n"
335 "va_end(aq);\n"
336 msgstr ""
337 "va_list aq;\n"
338 "va_copy(aq, ap);\n"
339 "\\&...\n"
340 "va_end(aq);\n"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "Each invocation of B<va_copy>() must be matched by a corresponding "
347 "invocation of B<va_end>() in the same function. Some systems that do not "
348 "supply B<va_copy>() have B<__va_copy> instead, since that was the name used "
349 "in the draft proposal."
350 msgstr ""
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "ATTRIBUTES"
357 msgstr "ATRIBUTOS"
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
364 msgstr ""
365 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
366
367 #. type: tbl table
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "Interface"
372 msgstr "Interface"
373
374 #. type: tbl table
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "Attribute"
379 msgstr "Atributo"
380
381 #. type: tbl table
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid "Value"
386 msgstr "Valor"
387
388 #. type: tbl table
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid ".na\n"
393 msgstr ".na\n"
394
395 #. type: tbl table
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid ".nh\n"
400 msgstr ".nh\n"
401
402 #. type: tbl table
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid ""
407 "B<va_start>(),\n"
408 "B<va_end>(),\n"
409 "B<va_copy>()"
410 msgstr ""
411 "B<va_start>(),\n"
412 "B<va_end>(),\n"
413 "B<va_copy>()"
414
415 #. type: tbl table
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "Thread safety"
420 msgstr "Thread safety"
421
422 #. type: tbl table
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "MT-Safe"
427 msgstr "MT-Safe"
428
429 #. type: TQ
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "B<va_arg>()"
434 msgstr "B<va_arg>()"
435
436 #. type: tbl table
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, fuzzy, no-wrap
440 #| msgid "MT-Safe locale"
441 msgid "MT-Safe race:ap"
442 msgstr "MT-Safe locale"
443
444 #. type: SH
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "STANDARDS"
449 msgstr "PADRÕES"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid "C11, POSIX.1-2008."
455 msgstr "C11, POSIX.1-2008."
456
457 #. type: SH
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "HISTORY"
462 msgstr "HISTÓRICO"
463
464 #. type: TP
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, fuzzy, no-wrap
468 #| msgid "va_start()"
469 msgid "B<va_start>()"
470 msgstr "va_start()"
471
472 #. type: TQ
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, fuzzy, no-wrap
476 #| msgid "va_end()"
477 msgid "B<va_end>()"
478 msgstr "va_end()"
479
480 #. type: Plain text
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 msgid "C89, POSIX.1-2001."
484 msgstr "C89, POSIX.1-2001."
485
486 #. type: TP
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, fuzzy, no-wrap
490 #| msgid "va_copy()"
491 msgid "B<va_copy>()"
492 msgstr "va_copy()"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid "C99, POSIX.1-2001."
498 msgstr "C99, POSIX.1-2001."
499
500 #. type: SH
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "CAVEATS"
505 msgstr ""
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, fuzzy
511 #| msgid ""
512 #| "Unlike the B<varargs> macros, the B<stdarg> macros do not permit "
513 #| "programmers to code a function with no fixed arguments. This problem "
514 #| "generates work mainly when converting B<varargs> code to B<stdarg> code, "
515 #| "but it also creates difficulties for variadic functions that wish to pass "
516 #| "all of their arguments on to a function that takes a B<va_list> argument, "
517 #| "such as B<vfprintf>(3)."
518 msgid ""
519 "Unlike the historical B<varargs> macros, the B<stdarg> macros do not permit "
520 "programmers to code a function with no fixed arguments. This problem "
521 "generates work mainly when converting B<varargs> code to B<stdarg> code, but "
522 "it also creates difficulties for variadic functions that wish to pass all of "
523 "their arguments on to a function that takes a I<va_list> argument, such as "
524 "B<vfprintf>(3)."
525 msgstr ""
526 "Diferentemente das macros B<varargs>, as macros B<stdarg> não permitem que "
527 "os programadores codifiquem uma função sem argumentos fixados. Este problema "
528 "dá trabalho principalmente quando se converte código B<varargs> para código "
529 "B<stdarg>, mas isto também cria dificuldades para funções 'variadic' que "
530 "desejam passar seus argumentos para uma função que aceita um argumento "
531 "B<va_list>, tal como B<vfprintf>(3)."
532
533 #. type: SH
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "EXAMPLES"
538 msgstr "EXEMPLOS"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "The function I<foo> takes a string of format characters and prints out the "
545 "argument associated with each format character based on the type."
546 msgstr ""
547 "A função I<foo> pega uma cadeia de formato caracteres e imprime o argumento "
548 "associado com cada caracter de formato baseada no tipo."
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, no-wrap
554 msgid ""
555 "#include E<lt>stdio.hE<gt>\n"
556 "#include E<lt>stdarg.hE<gt>\n"
557 "\\&\n"
558 "void\n"
559 "foo(char *fmt, ...) /* \\[aq]...\\[aq] is C syntax for a variadic function */\n"
560 "\\&\n"
561 "{\n"
562 " va_list ap;\n"
563 " int d;\n"
564 " char c;\n"
565 " char *s;\n"
566 "\\&\n"
567 " va_start(ap, fmt);\n"
568 " while (*fmt)\n"
569 " switch (*fmt++) {\n"
570 " case \\[aq]s\\[aq]: /* string */\n"
571 " s = va_arg(ap, char *);\n"
572 " printf(\"string %s\\[rs]n\", s);\n"
573 " break;\n"
574 " case \\[aq]d\\[aq]: /* int */\n"
575 " d = va_arg(ap, int);\n"
576 " printf(\"int %d\\[rs]n\", d);\n"
577 " break;\n"
578 " case \\[aq]c\\[aq]: /* char */\n"
579 " /* need a cast here since va_arg only\n"
580 " takes fully promoted types */\n"
581 " c = (char) va_arg(ap, int);\n"
582 " printf(\"char %c\\[rs]n\", c);\n"
583 " break;\n"
584 " }\n"
585 " va_end(ap);\n"
586 "}\n"
587 msgstr ""
588
589 #. type: SH
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 #, no-wrap
593 msgid "SEE ALSO"
594 msgstr "VEJA TAMBÉM"
595
596 #. type: Plain text
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 msgid "B<vprintf>(3), B<vscanf>(3), B<vsyslog>(3)"
600 msgstr "B<vprintf>(3), B<vscanf>(3), B<vsyslog>(3)"
601
602 #. type: TH
603 #: debian-trixie
604 #, no-wrap
605 msgid "2024-06-15"
606 msgstr "15 junho 2024"
607
608 #. type: TH
609 #: debian-trixie
610 #, no-wrap
611 msgid "Linux man-pages 6.9.1"
612 msgstr "Linux man-pages 6.9.1"
613
614 #. type: Plain text
615 #: debian-trixie
616 msgid "Standard C library (I<libc>, I<-lc>)"
617 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
618
619 #. type: TH
620 #: fedora-44 fedora-rawhide
621 #, no-wrap
622 msgid "2024-07-23"
623 msgstr "23 julho 2024"
624
625 #. type: TH
626 #: fedora-44 fedora-rawhide
627 #, no-wrap
628 msgid "Linux man-pages 6.13"
629 msgstr "Linux man-pages 6.13"
630
631 #. type: TH
632 #: mageia-cauldron
633 #, no-wrap
634 msgid "Linux man-pages 6.17"
635 msgstr "Linux man-pages 6.17"
636
637 #. type: TH
638 #: opensuse-leap-16-1 opensuse-tumbleweed
639 #, no-wrap
640 msgid "Linux man-pages (unreleased)"
641 msgstr "Linux man-pages (não lançado)"