Debian Codegraph @

po/ro/man3/stdarg.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.22.0\n"
8 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
9 "PO-Revision-Date: 2024-07-01 18:26+0200\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.4.3\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "stdarg"
25 msgstr "stdarg"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2025-05-17"
32 msgstr "17 mai 2025"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "stdarg, va_start, va_arg, va_end, va_copy - variable argument lists"
51 msgstr ""
52 "stdarg, va_start, va_arg, va_end, va_copy - liste de argumente variabile"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "SINOPSIS"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>stdarg.hE<gt>>\n"
79 msgstr "B<#include E<lt>stdarg.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<void va_start(va_list >I<ap>B<, >I<last>B<);>\n"
87 "I<type>B< va_arg(va_list >I<ap>B<, >I<type>B<);>\n"
88 "B<void va_end(va_list >I<ap>B<);>\n"
89 "B<void va_copy(va_list >I<dest>B<, va_list >I<src>B<);>\n"
90 msgstr ""
91 "B<void va_start(va_list >I<ap>B<, >I<last>B<);>\n"
92 "I<type>B< va_arg(va_list >I<ap>B<, >I<type>B<);>\n"
93 "B<void va_end(va_list >I<ap>B<);>\n"
94 "B<void va_copy(va_list >I<dest>B<, va_list >I<src>B<);>\n"
95
96 #. type: SH
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "DESCRIPTION"
101 msgstr "DESCRIERE"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "A function may be called with a varying number of arguments of varying "
108 "types. The include file I<E<lt>stdarg.hE<gt>> declares a type I<va_list> "
109 "and defines three macros for stepping through a list of arguments whose "
110 "number and types are not known to the called function."
111 msgstr ""
112 "O funcție poate fi apelată cu un număr variabil de argumente de diferite "
113 "tipuri. Fișierul de includere I<E<lt>stdarg.hE<gt>> declară un tip "
114 "I<va_list> și definește trei macro pentru parcurgerea unei liste de "
115 "argumente al căror număr și tipuri nu sunt cunoscute de funcția apelată."
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "The called function must declare an object of type I<va_list> which is used "
122 "by the macros B<va_start>(), B<va_arg>(), and B<va_end>()."
123 msgstr ""
124 "Funcția apelată trebuie să declare un obiect de tip I<va_list> care este "
125 "utilizat de macrocomenzile B<va_start>(), B<va_arg>() și B<va_end>()."
126
127 #. type: SS
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, no-wrap
131 msgid "va_start()"
132 msgstr "va_start()"
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "The B<va_start>() macro initializes I<ap> for subsequent use by "
139 "B<va_arg>() and B<va_end>(), and must be called first."
140 msgstr ""
141 "Macrocomanda B<va_start>() inițializează I<ap> pentru utilizarea ulterioară "
142 "de către B<va_arg>() și B<va_end>() și trebuie să fie apelată prima."
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "The argument I<last> is the name of the last argument before the variable "
149 "argument list, that is, the last argument of which the calling function "
150 "knows the type."
151 msgstr ""
152 "Argumentul I<last> este numele ultimului argument înainte de lista de "
153 "argumente a variabilei, adică ultimul argument al cărui tip este cunoscut de "
154 "către funcția apelantă."
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "Because the address of this argument may be used in the B<va_start>() "
161 "macro, it should not be declared as a register variable, or as a function or "
162 "an array type."
163 msgstr ""
164 "Deoarece adresa acestui argument poate fi utilizată în macrocomanda "
165 "B<va_start>(), acesta nu trebuie să fie declarat ca o variabilă de registru "
166 "sau ca o funcție sau un tip de matrice."
167
168 #. type: SS
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "va_arg()"
173 msgstr "va_arg()"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "The B<va_arg>() macro expands to an expression that has the type and value "
180 "of the next argument in the call. The argument I<ap> is the I<va_list> "
181 "I<ap> initialized by B<va_start>(). Each call to B<va_arg>() modifies "
182 "I<ap> so that the next call returns the next argument. The argument I<type> "
183 "is a type name specified so that the type of a pointer to an object that has "
184 "the specified type can be obtained simply by adding a * to I<type>."
185 msgstr ""
186 "Macrocomanda B<va_arg>() se extinde la o expresie care are tipul și valoarea "
187 "următorului argument din apel. Argumentul I<ap> este I<va_list> I<ap> "
188 "inițializat de B<va_start>(). Fiecare apel la B<va_arg>() modifică I<ap> "
189 "astfel încât următorul apel returnează următorul argument. Argumentul "
190 "I<type> este un nume de tip specificat astfel încât tipul unui indicator la "
191 "un obiect care are tipul specificat să poată fi obținut prin simpla adăugare "
192 "a unui * la I<type>."
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "The first use of the B<va_arg>() macro after that of the B<va_start>() "
199 "macro returns the argument after I<last>. Successive invocations return the "
200 "values of the remaining arguments."
201 msgstr ""
202 "Prima utilizare a macrocomenzii B<va_arg>() după cea a macrocomenzii "
203 "B<va_start>() returnează argumentul după I<last>. Invocările succesive "
204 "returnează valorile celorlalte argumente."
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "If there is no next argument, or if I<type> is not compatible with the type "
211 "of the actual next argument (as promoted according to the default argument "
212 "promotions), random errors will occur."
213 msgstr ""
214 "În cazul în care nu există un argument următor sau dacă I<tip> nu este "
215 "compatibil cu tipul argumentului următor real (promovat în conformitate cu "
216 "promoțiile de argumente implicite), vor apărea erori aleatorii."
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 "If I<ap> is passed to a function that uses B<va_arg(>I<ap>B<,>I<type>B<),> "
223 "then the value of I<ap> is undefined after the return of that function."
224 msgstr ""
225 "Dacă I<ap> este pasat unei funcții care utilizează "
226 "B<va_arg(>I<ap>B<,>I<tip>B<),> atunci valoarea lui I<ap> este nedefinită "
227 "după returnarea acelei funcții."
228
229 #. type: SS
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "va_end()"
234 msgstr "va_end()"
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "Each invocation of B<va_start>() must be matched by a corresponding "
241 "invocation of B<va_end>() in the same function. After the call "
242 "B<va_end(>I<ap>B<)> the variable I<ap> is undefined. Multiple traversals of "
243 "the list, each bracketed by B<va_start>() and B<va_end>() are possible. "
244 "B<va_end>() may be a macro or a function."
245 msgstr ""
246 "Fiecare invocare a B<va_start>() trebuie să fie însoțită de o invocare "
247 "corespunzătoare a B<va_end>() în cadrul aceleiași funcții. După apelul "
248 "B<va_end(>I<ap>B<)>, variabila I<ap> este nedefinită. Sunt posibile mai "
249 "multe parcurgeri ale listei, fiecare dintre ele între paranteze de "
250 "B<va_start>() și B<va_end>(). B<va_end>() poate fi o macrocomandă sau o "
251 "funcție."
252
253 #. type: SS
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "va_copy()"
258 msgstr "va_copy()"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid ""
264 "The B<va_copy>() macro copies the (previously initialized) variable "
265 "argument list I<src> to I<dest>. The behavior is as if B<va_start>() were "
266 "applied to I<dest> with the same I<last> argument, followed by the same "
267 "number of B<va_arg>() invocations that was used to reach the current state "
268 "of I<src>."
269 msgstr ""
270 "Macrocomanda B<va_copy>() copiază lista de argumente variabile (inițializată "
271 "anterior) I<src> în I<dest>. Comportamentul este ca și cum B<va_start>() ar "
272 "fi aplicat la I<dest> cu același argument I<last>, urmat de același număr de "
273 "invocări B<va_arg>() care a fost utilizat pentru a ajunge la starea actuală "
274 "a I<src>."
275
276 #. Proposal from [email protected], 1997-02-28
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 ""
281 "An obvious implementation would have a I<va_list> be a pointer to the stack "
282 "frame of the variadic function. In such a setup (by far the most common) "
283 "there seems nothing against an assignment"
284 msgstr ""
285 "O implementare evidentă ar fi ca I<va_list> să fie un indicator la cadrul de "
286 "stivă al funcției cu număr de argumente variabile. Într-o astfel de "
287 "configurație (de departe cea mai comună) nu pare să existe nimic împotriva "
288 "unei atribuiri"
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 #, no-wrap
294 msgid "va_list aq = ap;\n"
295 msgstr "va_list aq = ap;\n"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid ""
301 "Unfortunately, there are also systems that make it an array of pointers (of "
302 "length 1), and there one needs"
303 msgstr ""
304 "Din nefericire, există și sisteme care o transformă într-o matrice de "
305 "indicatori (de lungime 1), iar acolo este nevoie de"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid ""
312 "va_list aq;\n"
313 "*aq = *ap;\n"
314 msgstr ""
315 "va_list aq;\n"
316 "*aq = *ap;\n"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "Finally, on systems where arguments are passed in registers, it may be "
323 "necessary for B<va_start>() to allocate memory, store the arguments there, "
324 "and also an indication of which argument is next, so that B<va_arg>() can "
325 "step through the list. Now B<va_end>() can free the allocated memory "
326 "again. To accommodate this situation, C99 adds a macro B<va_copy>(), so "
327 "that the above assignment can be replaced by"
328 msgstr ""
329 "În cele din urmă, pe sistemele în care argumentele sunt transmise în "
330 "registre, poate fi necesar ca B<va_start>() să aloce memorie, să stocheze "
331 "acolo argumentele, precum și o indicație a argumentului care urmează, astfel "
332 "încât B<va_arg>() să poată parcurge lista. Acum, B<va_end>() poate elibera "
333 "din nou memoria alocată. Pentru a se adapta la această situație, C99 adaugă "
334 "o macrocomandă B<va_copy>(), astfel încât atribuirea de mai sus poate fi "
335 "înlocuită cu"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, no-wrap
341 msgid ""
342 "va_list aq;\n"
343 "va_copy(aq, ap);\n"
344 "\\&...\n"
345 "va_end(aq);\n"
346 msgstr ""
347 "va_list aq;\n"
348 "va_copy(aq, ap);\n"
349 "\\&...\n"
350 "va_end(aq);\n"
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "Each invocation of B<va_copy>() must be matched by a corresponding "
357 "invocation of B<va_end>() in the same function. Some systems that do not "
358 "supply B<va_copy>() have B<__va_copy> instead, since that was the name used "
359 "in the draft proposal."
360 msgstr ""
361 "Fiecare invocare a B<va_copy>() trebuie să fie însoțită de o invocare "
362 "corespunzătoare a B<va_end>() în cadrul aceleiași funcții. Unele sisteme "
363 "care nu furnizează B<va_copy>() au în schimb B<__va_copy>, deoarece acesta a "
364 "fost numele utilizat în proiectul de propunere."
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "ATTRIBUTES"
371 msgstr "ATRIBUTE"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid ""
377 "For an explanation of the terms used in this section, see B<attributes>(7)."
378 msgstr ""
379 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
380 "B<attributes>(7)."
381
382 #. type: tbl table
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "Interface"
387 msgstr "Interfață"
388
389 #. type: tbl table
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "Attribute"
394 msgstr "Atribut"
395
396 #. type: tbl table
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "Value"
401 msgstr "Valoare"
402
403 #. type: tbl table
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid ".na\n"
408 msgstr ".na\n"
409
410 #. type: tbl table
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid ".nh\n"
415 msgstr ".nh\n"
416
417 #. type: tbl table
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid ""
422 "B<va_start>(),\n"
423 "B<va_end>(),\n"
424 "B<va_copy>()"
425 msgstr ""
426 "B<va_start>(),\n"
427 "B<va_end>(),\n"
428 "B<va_copy>()"
429
430 #. type: tbl table
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid "Thread safety"
435 msgstr "Siguranța firelor"
436
437 #. type: tbl table
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "MT-Safe"
442 msgstr "MT-Safe"
443
444 #. type: TQ
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "B<va_arg>()"
449 msgstr "B<va_arg>()"
450
451 #. type: tbl table
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "MT-Safe race:ap"
456 msgstr "MT-Safe race:ap"
457
458 #. type: SH
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "STANDARDS"
463 msgstr "STANDARDE"
464
465 #. type: Plain text
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 msgid "C11, POSIX.1-2008."
469 msgstr "C11, POSIX.1-2008."
470
471 #. type: SH
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "HISTORY"
476 msgstr "ISTORIC"
477
478 #. type: TP
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "B<va_start>()"
483 msgstr "B<va_start>()"
484
485 #. type: TQ
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "B<va_end>()"
490 msgstr "B<va_end>()"
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid "C89, POSIX.1-2001."
496 msgstr "C89, POSIX.1-2001."
497
498 #. type: TP
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "B<va_copy>()"
503 msgstr "B<va_copy>()"
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid "C99, POSIX.1-2001."
509 msgstr "C99, POSIX.1-2001."
510
511 #. type: SH
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "CAVEATS"
516 msgstr "AVERTISMENTE"
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "Unlike the historical B<varargs> macros, the B<stdarg> macros do not permit "
523 "programmers to code a function with no fixed arguments. This problem "
524 "generates work mainly when converting B<varargs> code to B<stdarg> code, but "
525 "it also creates difficulties for variadic functions that wish to pass all of "
526 "their arguments on to a function that takes a I<va_list> argument, such as "
527 "B<vfprintf>(3)."
528 msgstr ""
529 "Spre deosebire de macrocomenzile istorice B<varargs>, macrocomenzile "
530 "B<stdarg> nu permit programatorilor să codifice o funcție fără argumente "
531 "fixe. Această problemă generează muncă mai ales la convertirea codului "
532 "B<varargs> în cod B<stdarg>, dar creează dificultăți și pentru funcțiile cu "
533 "număr de argumente variabile, „variadice”, care doresc să transmită toate "
534 "argumentele lor unei funcții care ia un argument I<va_list>, cum ar fi "
535 "B<vfprintf>(3)."
536
537 #. type: SH
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "EXAMPLES"
542 msgstr "EXEMPLE"
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 msgid ""
548 "The function I<foo> takes a string of format characters and prints out the "
549 "argument associated with each format character based on the type."
550 msgstr ""
551 "Funcția I<foo> preia un șir de caractere de format și afișează argumentul "
552 "asociat fiecărui caracter de format în funcție de tip."
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid ""
559 "#include E<lt>stdio.hE<gt>\n"
560 "#include E<lt>stdarg.hE<gt>\n"
561 "\\&\n"
562 "void\n"
563 "foo(char *fmt, ...) /* \\[aq]...\\[aq] is C syntax for a variadic function */\n"
564 "\\&\n"
565 "{\n"
566 " va_list ap;\n"
567 " int d;\n"
568 " char c;\n"
569 " char *s;\n"
570 "\\&\n"
571 " va_start(ap, fmt);\n"
572 " while (*fmt)\n"
573 " switch (*fmt++) {\n"
574 " case \\[aq]s\\[aq]: /* string */\n"
575 " s = va_arg(ap, char *);\n"
576 " printf(\"string %s\\[rs]n\", s);\n"
577 " break;\n"
578 " case \\[aq]d\\[aq]: /* int */\n"
579 " d = va_arg(ap, int);\n"
580 " printf(\"int %d\\[rs]n\", d);\n"
581 " break;\n"
582 " case \\[aq]c\\[aq]: /* char */\n"
583 " /* need a cast here since va_arg only\n"
584 " takes fully promoted types */\n"
585 " c = (char) va_arg(ap, int);\n"
586 " printf(\"char %c\\[rs]n\", c);\n"
587 " break;\n"
588 " }\n"
589 " va_end(ap);\n"
590 "}\n"
591 msgstr ""
592 "#include E<lt>stdio.hE<gt>\n"
593 "#include E<lt>stdarg.hE<gt>\n"
594 "\\&\n"
595 "void\n"
596 "foo(char *fmt, ...) /* \\[aq]...\\[aq] este sintaxa C pentru o funcție variadică */\n"
597 "\\&\n"
598 "{\n"
599 " va_list ap;\n"
600 " int d;\n"
601 " char c;\n"
602 " char *s;\n"
603 "\\&\n"
604 " va_start(ap, fmt);\n"
605 " while (*fmt)\n"
606 " switch (*fmt++) {\n"
607 " case \\[aq]s\\[aq]: /* șir */\n"
608 " s = va_arg(ap, char *);\n"
609 " printf(\"șir %s\\[rs]n\", s);\n"
610 " break;\n"
611 " case \\[aq]d\\[aq]: /* număr întreg */\n"
612 " d = va_arg(ap, int);\n"
613 " printf(\"număr întreg %d\\[rs]n\", d);\n"
614 " break;\n"
615 " case \\[aq]c\\[aq]: /* caracter */\n"
616 " /* avem nevoie de o conversie de tip aici,\n"
617 " deoarece va_arg acceptă numai\n"
618 " tipuri complet promovate */\n"
619 " c = (char) va_arg(ap, int);\n"
620 " printf(\"caracter %c\\[rs]n\", c);\n"
621 " break;\n"
622 " }\n"
623 " va_end(ap);\n"
624 "}\n"
625
626 #. type: SH
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, no-wrap
630 msgid "SEE ALSO"
631 msgstr "CONSULTAȚI ȘI"
632
633 #. type: Plain text
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 msgid "B<vprintf>(3), B<vscanf>(3), B<vsyslog>(3)"
637 msgstr "B<vprintf>(3), B<vscanf>(3), B<vsyslog>(3)"
638
639 #. type: TH
640 #: debian-trixie
641 #, no-wrap
642 msgid "2024-06-15"
643 msgstr "15 iunie 2024"
644
645 #. type: TH
646 #: debian-trixie
647 #, no-wrap
648 msgid "Linux man-pages 6.9.1"
649 msgstr "Pagini de manual de Linux 6.9.1"
650
651 #. type: Plain text
652 #: debian-trixie
653 msgid "Standard C library (I<libc>, I<-lc>)"
654 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
655
656 #. type: TH
657 #: fedora-44 fedora-rawhide
658 #, no-wrap
659 msgid "2024-07-23"
660 msgstr "23 iulie 2024"
661
662 #. type: TH
663 #: fedora-44 fedora-rawhide
664 #, no-wrap
665 msgid "Linux man-pages 6.13"
666 msgstr "Pagini de manual de Linux 6.13"
667
668 #. type: TH
669 #: mageia-cauldron
670 #, no-wrap
671 msgid "Linux man-pages 6.17"
672 msgstr "Pagini de manual de Linux 6.17"
673
674 #. type: TH
675 #: opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "Linux man-pages (unreleased)"
678 msgstr "Pagini de manual Linux (nepublicate)"