Debian Codegraph @

templates/man3/stdarg.3.pot

raw
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.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "stdarg"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-05-17"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "stdarg, va_start, va_arg, va_end, va_copy - variable argument lists"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>stdarg.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<void va_start(va_list >I<ap>B<, >I<last>B<);>\n"
85 "I<type>B< va_arg(va_list >I<ap>B<, >I<type>B<);>\n"
86 "B<void va_end(va_list >I<ap>B<);>\n"
87 "B<void va_copy(va_list >I<dest>B<, va_list >I<src>B<);>\n"
88 msgstr ""
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
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 "A function may be called with a varying number of arguments of varying "
102 "types. The include file I<E<lt>stdarg.hE<gt>> declares a type I<va_list> "
103 "and defines three macros for stepping through a list of arguments whose "
104 "number and types are not known to the called function."
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "The called function must declare an object of type I<va_list> which is used "
112 "by the macros B<va_start>(), B<va_arg>(), and B<va_end>()."
113 msgstr ""
114
115 #. type: SS
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid "va_start()"
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "The B<va_start>() macro initializes I<ap> for subsequent use by "
127 "B<va_arg>() and B<va_end>(), and must be called first."
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "The argument I<last> is the name of the last argument before the variable "
135 "argument list, that is, the last argument of which the calling function "
136 "knows the type."
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "Because the address of this argument may be used in the B<va_start>() "
144 "macro, it should not be declared as a register variable, or as a function or "
145 "an array type."
146 msgstr ""
147
148 #. type: SS
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, no-wrap
152 msgid "va_arg()"
153 msgstr ""
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "The B<va_arg>() macro expands to an expression that has the type and value "
160 "of the next argument in the call. The argument I<ap> is the I<va_list> "
161 "I<ap> initialized by B<va_start>(). Each call to B<va_arg>() modifies "
162 "I<ap> so that the next call returns the next argument. The argument I<type> "
163 "is a type name specified so that the type of a pointer to an object that has "
164 "the specified type can be obtained simply by adding a * to I<type>."
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "The first use of the B<va_arg>() macro after that of the B<va_start>() "
172 "macro returns the argument after I<last>. Successive invocations return the "
173 "values of the remaining arguments."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "If there is no next argument, or if I<type> is not compatible with the type "
181 "of the actual next argument (as promoted according to the default argument "
182 "promotions), random errors will occur."
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "If I<ap> is passed to a function that uses B<va_arg(>I<ap>B<,>I<type>B<),> "
190 "then the value of I<ap> is undefined after the return of that function."
191 msgstr ""
192
193 #. type: SS
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "va_end()"
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "Each invocation of B<va_start>() must be matched by a corresponding "
205 "invocation of B<va_end>() in the same function. After the call "
206 "B<va_end(>I<ap>B<)> the variable I<ap> is undefined. Multiple traversals of "
207 "the list, each bracketed by B<va_start>() and B<va_end>() are possible. "
208 "B<va_end>() may be a macro or a function."
209 msgstr ""
210
211 #. type: SS
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "va_copy()"
216 msgstr ""
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "The B<va_copy>() macro copies the (previously initialized) variable "
223 "argument list I<src> to I<dest>. The behavior is as if B<va_start>() were "
224 "applied to I<dest> with the same I<last> argument, followed by the same "
225 "number of B<va_arg>() invocations that was used to reach the current state "
226 "of I<src>."
227 msgstr ""
228
229 #. Proposal from [email protected], 1997-02-28
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "An obvious implementation would have a I<va_list> be a pointer to the stack "
235 "frame of the variadic function. In such a setup (by far the most common) "
236 "there seems nothing against an assignment"
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "va_list aq = ap;\n"
244 msgstr ""
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ""
250 "Unfortunately, there are also systems that make it an array of pointers (of "
251 "length 1), and there one needs"
252 msgstr ""
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid ""
259 "va_list aq;\n"
260 "*aq = *ap;\n"
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "Finally, on systems where arguments are passed in registers, it may be "
268 "necessary for B<va_start>() to allocate memory, store the arguments there, "
269 "and also an indication of which argument is next, so that B<va_arg>() can "
270 "step through the list. Now B<va_end>() can free the allocated memory "
271 "again. To accommodate this situation, C99 adds a macro B<va_copy>(), so "
272 "that the above assignment can be replaced by"
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid ""
280 "va_list aq;\n"
281 "va_copy(aq, ap);\n"
282 "\\&...\n"
283 "va_end(aq);\n"
284 msgstr ""
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "Each invocation of B<va_copy>() must be matched by a corresponding "
291 "invocation of B<va_end>() in the same function. Some systems that do not "
292 "supply B<va_copy>() have B<__va_copy> instead, since that was the name used "
293 "in the draft proposal."
294 msgstr ""
295
296 #. type: SH
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "ATTRIBUTES"
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "For an explanation of the terms used in this section, see B<attributes>(7)."
308 msgstr ""
309
310 #. type: tbl table
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "Interface"
315 msgstr ""
316
317 #. type: tbl table
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "Attribute"
322 msgstr ""
323
324 #. type: tbl table
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "Value"
329 msgstr ""
330
331 #. type: tbl table
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid ".na\n"
336 msgstr ""
337
338 #. type: tbl table
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid ".nh\n"
343 msgstr ""
344
345 #. type: tbl table
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid ""
350 "B<va_start>(),\n"
351 "B<va_end>(),\n"
352 "B<va_copy>()"
353 msgstr ""
354
355 #. type: tbl table
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "Thread safety"
360 msgstr ""
361
362 #. type: tbl table
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "MT-Safe"
367 msgstr ""
368
369 #. type: TQ
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "B<va_arg>()"
374 msgstr ""
375
376 #. type: tbl table
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "MT-Safe race:ap"
381 msgstr ""
382
383 #. type: SH
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "STANDARDS"
388 msgstr ""
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "C11, POSIX.1-2008."
394 msgstr ""
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "HISTORY"
401 msgstr ""
402
403 #. type: TP
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "B<va_start>()"
408 msgstr ""
409
410 #. type: TQ
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "B<va_end>()"
415 msgstr ""
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid "C89, POSIX.1-2001."
421 msgstr ""
422
423 #. type: TP
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "B<va_copy>()"
428 msgstr ""
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid "C99, POSIX.1-2001."
434 msgstr ""
435
436 #. type: SH
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "CAVEATS"
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "Unlike the historical B<varargs> macros, the B<stdarg> macros do not permit "
448 "programmers to code a function with no fixed arguments. This problem "
449 "generates work mainly when converting B<varargs> code to B<stdarg> code, but "
450 "it also creates difficulties for variadic functions that wish to pass all of "
451 "their arguments on to a function that takes a I<va_list> argument, such as "
452 "B<vfprintf>(3)."
453 msgstr ""
454
455 #. type: SH
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "EXAMPLES"
460 msgstr ""
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "The function I<foo> takes a string of format characters and prints out the "
467 "argument associated with each format character based on the type."
468 msgstr ""
469
470 #. type: Plain text
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid ""
475 "#include E<lt>stdio.hE<gt>\n"
476 "#include E<lt>stdarg.hE<gt>\n"
477 "\\&\n"
478 "void\n"
479 "foo(char *fmt, ...) /* \\[aq]...\\[aq] is C syntax for a variadic function */\n"
480 "\\&\n"
481 "{\n"
482 " va_list ap;\n"
483 " int d;\n"
484 " char c;\n"
485 " char *s;\n"
486 "\\&\n"
487 " va_start(ap, fmt);\n"
488 " while (*fmt)\n"
489 " switch (*fmt++) {\n"
490 " case \\[aq]s\\[aq]: /* string */\n"
491 " s = va_arg(ap, char *);\n"
492 " printf(\"string %s\\[rs]n\", s);\n"
493 " break;\n"
494 " case \\[aq]d\\[aq]: /* int */\n"
495 " d = va_arg(ap, int);\n"
496 " printf(\"int %d\\[rs]n\", d);\n"
497 " break;\n"
498 " case \\[aq]c\\[aq]: /* char */\n"
499 " /* need a cast here since va_arg only\n"
500 " takes fully promoted types */\n"
501 " c = (char) va_arg(ap, int);\n"
502 " printf(\"char %c\\[rs]n\", c);\n"
503 " break;\n"
504 " }\n"
505 " va_end(ap);\n"
506 "}\n"
507 msgstr ""
508
509 #. type: SH
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "SEE ALSO"
514 msgstr ""
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid "B<vprintf>(3), B<vscanf>(3), B<vsyslog>(3)"
520 msgstr ""
521
522 #. type: TH
523 #: debian-trixie
524 #, no-wrap
525 msgid "2024-06-15"
526 msgstr ""
527
528 #. type: TH
529 #: debian-trixie
530 #, no-wrap
531 msgid "Linux man-pages 6.9.1"
532 msgstr ""
533
534 #. type: Plain text
535 #: debian-trixie
536 msgid "Standard C library (I<libc>, I<-lc>)"
537 msgstr ""
538
539 #. type: TH
540 #: fedora-44 fedora-rawhide
541 #, no-wrap
542 msgid "2024-07-23"
543 msgstr ""
544
545 #. type: TH
546 #: fedora-44 fedora-rawhide
547 #, no-wrap
548 msgid "Linux man-pages 6.13"
549 msgstr ""
550
551 #. type: TH
552 #: mageia-cauldron
553 #, no-wrap
554 msgid "Linux man-pages 6.17"
555 msgstr ""
556
557 #. type: TH
558 #: opensuse-leap-16-1 opensuse-tumbleweed
559 #, no-wrap
560 msgid "Linux man-pages (unreleased)"
561 msgstr ""