Debian Codegraph @

po/ru/man3/stdarg.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "stdarg"
33 msgstr ""
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2025-05-17"
40 msgstr "17 мая 2025 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 msgid "stdarg, va_start, va_arg, va_end, va_copy - variable argument lists"
60 msgstr ""
61 "stdarg, va_start, va_arg, va_end, va_copy - работа со списком переменного "
62 "количества аргументов"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "LIBRARY"
69 msgstr "БИБЛИОТЕКА"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "Standard C library (I<libc>,\\ I<-lc>)"
75 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "SYNOPSIS"
82 msgstr "СИНТАКСИС"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<#include E<lt>stdarg.hE<gt>>\n"
89 msgstr "B<#include E<lt>stdarg.hE<gt>>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<void va_start(va_list >I<ap>B<, >I<last>B<);>\n"
97 "I<type>B< va_arg(va_list >I<ap>B<, >I<type>B<);>\n"
98 "B<void va_end(va_list >I<ap>B<);>\n"
99 "B<void va_copy(va_list >I<dest>B<, va_list >I<src>B<);>\n"
100 msgstr ""
101
102 #. type: SH
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "DESCRIPTION"
107 msgstr "ОПИСАНИЕ"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "A function may be called with a varying number of arguments of varying "
114 "types. The include file I<E<lt>stdarg.hE<gt>> declares a type I<va_list> "
115 "and defines three macros for stepping through a list of arguments whose "
116 "number and types are not known to the called function."
117 msgstr ""
118 "Функцию можно вызвать передав ей произвольное количество аргументов разных "
119 "типов. Во включаемом файле I<E<lt>stdarg.hE<gt>> объявляется тип I<va_list> "
120 "и определяется три макроса для пошагового обхода списка аргументов, чьё "
121 "количество и типы неизвестны вызываемой функции."
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "The called function must declare an object of type I<va_list> which is used "
128 "by the macros B<va_start>(), B<va_arg>(), and B<va_end>()."
129 msgstr ""
130 "В вызываемой функции требуется объявить объект с типом I<va_list>, который "
131 "используется макросами B<va_start>(), B<va_arg>() и B<va_end>()."
132
133 #. type: SS
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "va_start()"
138 msgstr "va_start()"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "The B<va_start>() macro initializes I<ap> for subsequent use by "
145 "B<va_arg>() and B<va_end>(), and must be called first."
146 msgstr ""
147 "Макрос B<va_start>() инициализирует I<ap> для последующего использования в "
148 "B<va_arg>()и B<va_end>(), и должен вызываться первым."
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 "The argument I<last> is the name of the last argument before the variable "
155 "argument list, that is, the last argument of which the calling function "
156 "knows the type."
157 msgstr ""
158 "Аргумент I<last> это имя последнего аргумента перед списком с переменным "
159 "количеством аргументов, то есть это последний аргумент, тип которого "
160 "известен вызывающей функции."
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "Because the address of this argument may be used in the B<va_start>() "
167 "macro, it should not be declared as a register variable, or as a function or "
168 "an array type."
169 msgstr ""
170 "Так как адрес этого аргумента может быть использован в макросе "
171 "B<va_start>(), он не должен быть объявлен как регистровая переменная, иметь "
172 "тип функции или массива."
173
174 #. type: SS
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid "va_arg()"
179 msgstr "va_arg()"
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "The B<va_arg>() macro expands to an expression that has the type and value "
186 "of the next argument in the call. The argument I<ap> is the I<va_list> "
187 "I<ap> initialized by B<va_start>(). Each call to B<va_arg>() modifies "
188 "I<ap> so that the next call returns the next argument. The argument I<type> "
189 "is a type name specified so that the type of a pointer to an object that has "
190 "the specified type can be obtained simply by adding a * to I<type>."
191 msgstr ""
192 "Макрос B<va_arg>() раскрывается в выражение, которое имеет тип и значение "
193 "следующего аргумента в вызове. Аргумент I<ap> — это I<va_list> I<ap>, "
194 "инициализированный B<va_start>(). Каждый вызов B<va_arg>() изменяет I<ap> "
195 "так, что следующий вызов возвращает следующий аргумент. Аргумент I<type> — "
196 "это имя типа, указанное так, что тип указателя на объект, который имеет "
197 "указанный тип, можно получить просто добавив * в I<type>."
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "The first use of the B<va_arg>() macro after that of the B<va_start>() "
204 "macro returns the argument after I<last>. Successive invocations return the "
205 "values of the remaining arguments."
206 msgstr ""
207 "Первый вызов макроса B<va_arg>() после B<va_start>() вернёт аргумент после "
208 "I<last>. Последующие вызовы вернут значения оставшихся аргументов."
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "If there is no next argument, or if I<type> is not compatible with the type "
215 "of the actual next argument (as promoted according to the default argument "
216 "promotions), random errors will occur."
217 msgstr ""
218 "Если аргументы закончились, или если I<type> не совместим с типом настоящего "
219 "следующего аргумента (преобразование происходит согласно преобразованию "
220 "аргументов по умолчанию), может произойти любая ошибка."
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "If I<ap> is passed to a function that uses B<va_arg(>I<ap>B<,>I<type>B<),> "
227 "then the value of I<ap> is undefined after the return of that function."
228 msgstr ""
229 "Если I<ap> передан в функцию, которая использует "
230 "B<va_arg(>I<ap>B<,>I<type>B<),> то значение I<ap> не определено после "
231 "возврата из функции."
232
233 #. type: SS
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "va_end()"
238 msgstr "va_end()"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "Each invocation of B<va_start>() must be matched by a corresponding "
245 "invocation of B<va_end>() in the same function. After the call "
246 "B<va_end(>I<ap>B<)> the variable I<ap> is undefined. Multiple traversals of "
247 "the list, each bracketed by B<va_start>() and B<va_end>() are possible. "
248 "B<va_end>() may be a macro or a function."
249 msgstr ""
250 "Каждый использование B<va_start>() должно завершаться соответствующим "
251 "вызовом B<va_end>() в той же функции. После вызова B<va_end(>I<ap>B<)> "
252 "значение переменной I<ap> не определено. Возможно несколько проходов по "
253 "списку, если каждый из них начинать B<va_start>() и заканчивать B<va_end>(). "
254 "Макрос B<va_end>() может быть и функцией."
255
256 #. type: SS
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "va_copy()"
261 msgstr "va_copy()"
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 "The B<va_copy>() macro copies the (previously initialized) variable "
268 "argument list I<src> to I<dest>. The behavior is as if B<va_start>() were "
269 "applied to I<dest> with the same I<last> argument, followed by the same "
270 "number of B<va_arg>() invocations that was used to reach the current state "
271 "of I<src>."
272 msgstr ""
273 "Макрос B<va_copy>() копирует (ранее инициализированный) список с переменным "
274 "количеством аргументов I<src> в I<dest>. Его действие такое же, как если бы "
275 "B<va_start>() применили к I<dest> с тем же аргументом I<last>, после чего "
276 "было бы совершено такое же количество вызовов B<va_arg>(), которое имеется в "
277 "текущем состоянии I<src>."
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 "Очевидной реализацией было бы создать переменную с типом I<va_list>, "
289 "указывающую на стековый фрейм функции с переменным количеством аргументов. В "
290 "этом случае (безусловно, наиболее распространенном) кажется, что достаточно "
291 "присвоения"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "va_list aq = ap;\n"
298 msgstr "va_list aq = ap;\n"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid ""
304 "Unfortunately, there are also systems that make it an array of pointers (of "
305 "length 1), and there one needs"
306 msgstr ""
307 "К сожалению, есть системы, в которых это массив указателей (длиной 1), и "
308 "нужно делать"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid ""
315 "va_list aq;\n"
316 "*aq = *ap;\n"
317 msgstr ""
318 "va_list aq;\n"
319 "*aq = *ap;\n"
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "Finally, on systems where arguments are passed in registers, it may be "
326 "necessary for B<va_start>() to allocate memory, store the arguments there, "
327 "and also an indication of which argument is next, so that B<va_arg>() can "
328 "step through the list. Now B<va_end>() can free the allocated memory "
329 "again. To accommodate this situation, C99 adds a macro B<va_copy>(), so "
330 "that the above assignment can be replaced by"
331 msgstr ""
332 "Наконец, в системах, где аргументы передаются через регистры, в "
333 "B<va_start>() может потребоваться выделить память, сохранить там аргументы, "
334 "а также индекс следующего элемента для того, чтобы B<va_arg>() мог обойти "
335 "список. Также B<va_end>() может освобождать выделенную память. Чтобы всё это "
336 "учесть в C99 добавлен макрос B<va_copy>(), который позволяет показанное выше "
337 "назначение заменить на"
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid ""
344 "va_list aq;\n"
345 "va_copy(aq, ap);\n"
346 "\\&...\n"
347 "va_end(aq);\n"
348 msgstr ""
349 "va_list aq;\n"
350 "va_copy(aq, ap);\n"
351 "\\&...\n"
352 "va_end(aq);\n"
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid ""
358 "Each invocation of B<va_copy>() must be matched by a corresponding "
359 "invocation of B<va_end>() in the same function. Some systems that do not "
360 "supply B<va_copy>() have B<__va_copy> instead, since that was the name used "
361 "in the draft proposal."
362 msgstr ""
363 "Для каждого вызова B<va_copy>() должен быть соответствующий вызов "
364 "B<va_end>() в той же функции. В некоторых системах нет B<va_copy>(), а есть "
365 "B<__va_copy> — имя, которое использовалось в черновике стандарта."
366
367 #. type: SH
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "ATTRIBUTES"
372 msgstr "АТРИБУТЫ"
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "For an explanation of the terms used in this section, see B<attributes>(7)."
379 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
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 "Interface"
386 msgstr "Интерфейс"
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 "Attribute"
393 msgstr "Атрибут"
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 "Value"
400 msgstr "Значение"
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 ".na\n"
407 msgstr ".na\n"
408
409 #. type: tbl table
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid ".nh\n"
414 msgstr ".nh\n"
415
416 #. type: tbl table
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid ""
421 "B<va_start>(),\n"
422 "B<va_end>(),\n"
423 "B<va_copy>()"
424 msgstr ""
425 "B<va_start>(),\n"
426 "B<va_end>(),\n"
427 "B<va_copy>()"
428
429 #. type: tbl table
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "Thread safety"
434 msgstr "Безвредность в нитях"
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 #, no-wrap
440 msgid "MT-Safe"
441 msgstr "MT-Safe"
442
443 #. type: TQ
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid "B<va_arg>()"
448 msgstr "B<va_arg>()"
449
450 #. type: tbl table
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "MT-Safe race:ap"
455 msgstr "MT-Safe race:ap"
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 "STANDARDS"
462 msgstr "СТАНДАРТЫ"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid "C11, POSIX.1-2008."
468 msgstr "C11, POSIX.1-2008."
469
470 #. type: SH
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid "HISTORY"
475 msgstr "ИСТОРИЯ"
476
477 #. type: TP
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, fuzzy, no-wrap
481 #| msgid "va_start()"
482 msgid "B<va_start>()"
483 msgstr "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 #, fuzzy, no-wrap
489 #| msgid "va_end()"
490 msgid "B<va_end>()"
491 msgstr "va_end()"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid "C89, POSIX.1-2001."
497 msgstr "C89, POSIX.1-2001."
498
499 #. type: TP
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, fuzzy, no-wrap
503 #| msgid "va_copy()"
504 msgid "B<va_copy>()"
505 msgstr "va_copy()"
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 msgid "C99, POSIX.1-2001."
511 msgstr "C99, POSIX.1-2001."
512
513 #. type: SH
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "CAVEATS"
518 msgstr ""
519
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "Unlike the historical B<varargs> macros, the B<stdarg> macros do not permit "
525 "programmers to code a function with no fixed arguments. This problem "
526 "generates work mainly when converting B<varargs> code to B<stdarg> code, but "
527 "it also creates difficulties for variadic functions that wish to pass all of "
528 "their arguments on to a function that takes a I<va_list> argument, such as "
529 "B<vfprintf>(3)."
530 msgstr ""
531 "В отличие от исторических макросов B<varargs>, макросы B<stdarg> не "
532 "позволяют программистам создать функцию без постоянных аргументов. Эта "
533 "проблема создаёт работу, в основном, при преобразовании кода B<varargs> в "
534 "код B<stdarg>, а также есть сложности с функциями с переменным количеством "
535 "аргументов, которым нужно передать все их аргументы в функцию в виде "
536 "аргумента с типом I<va_list>, например B<vfprintf>(3)."
537
538 #. type: SH
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid "EXAMPLES"
543 msgstr "ПРИМЕРЫ"
544
545 #. type: Plain text
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 msgid ""
549 "The function I<foo> takes a string of format characters and prints out the "
550 "argument associated with each format character based on the type."
551 msgstr ""
552 "Функция I<foo> берёт строку с символами формата и печатает аргумент, "
553 "связанный с каждым таким символом, на основе его типа."
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, fuzzy, no-wrap
559 #| msgid ""
560 #| " va_start(ap, fmt);\n"
561 #| " while (*fmt)\n"
562 #| " switch (*fmt++) {\n"
563 #| " case \\(aqs\\(aq: /* string */\n"
564 #| " s = va_arg(ap, char *);\n"
565 #| " printf(\"string %s\\en\", s);\n"
566 #| " break;\n"
567 #| " case \\(aqd\\(aq: /* int */\n"
568 #| " d = va_arg(ap, int);\n"
569 #| " printf(\"int %d\\en\", d);\n"
570 #| " break;\n"
571 #| " case \\(aqc\\(aq: /* char */\n"
572 #| " /* need a cast here since va_arg only\n"
573 #| " takes fully promoted types */\n"
574 #| " c = (char) va_arg(ap, int);\n"
575 #| " printf(\"char %c\\en\", c);\n"
576 #| " break;\n"
577 #| " }\n"
578 #| " va_end(ap);\n"
579 #| "}\n"
580 msgid ""
581 "#include E<lt>stdio.hE<gt>\n"
582 "#include E<lt>stdarg.hE<gt>\n"
583 "\\&\n"
584 "void\n"
585 "foo(char *fmt, ...) /* \\[aq]...\\[aq] is C syntax for a variadic function */\n"
586 "\\&\n"
587 "{\n"
588 " va_list ap;\n"
589 " int d;\n"
590 " char c;\n"
591 " char *s;\n"
592 "\\&\n"
593 " va_start(ap, fmt);\n"
594 " while (*fmt)\n"
595 " switch (*fmt++) {\n"
596 " case \\[aq]s\\[aq]: /* string */\n"
597 " s = va_arg(ap, char *);\n"
598 " printf(\"string %s\\[rs]n\", s);\n"
599 " break;\n"
600 " case \\[aq]d\\[aq]: /* int */\n"
601 " d = va_arg(ap, int);\n"
602 " printf(\"int %d\\[rs]n\", d);\n"
603 " break;\n"
604 " case \\[aq]c\\[aq]: /* char */\n"
605 " /* need a cast here since va_arg only\n"
606 " takes fully promoted types */\n"
607 " c = (char) va_arg(ap, int);\n"
608 " printf(\"char %c\\[rs]n\", c);\n"
609 " break;\n"
610 " }\n"
611 " va_end(ap);\n"
612 "}\n"
613 msgstr ""
614 " va_start(ap, fmt);\n"
615 " while (*fmt)\n"
616 " switch (*fmt++) {\n"
617 " case \\(aqs\\(aq: /* строка */\n"
618 " s = va_arg(ap, char *);\n"
619 " printf(\"строка %s\\en\", s);\n"
620 " break;\n"
621 " case \\(aqd\\(aq: /* int */\n"
622 " d = va_arg(ap, int);\n"
623 " printf(\"int %d\\en\", d);\n"
624 " break;\n"
625 " case \\(aqc\\(aq: /* символ */\n"
626 " /* здесь требуется преобразование, так как va_arg только\n"
627 " с полностью описанными (promoted) типами */\n"
628 " c = (char) va_arg(ap, int);\n"
629 " printf(\"символ %c\\en\", c);\n"
630 " break;\n"
631 " }\n"
632 " va_end(ap);\n"
633 "}\n"
634
635 #. type: SH
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "SEE ALSO"
640 msgstr "СМОТРИТЕ ТАКЖЕ"
641
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 #, fuzzy
646 #| msgid "B<vscanf>(), B<vsscanf>(), B<vfscanf>():"
647 msgid "B<vprintf>(3), B<vscanf>(3), B<vsyslog>(3)"
648 msgstr "B<vscanf>(), B<vsscanf>(), B<vfscanf>():"
649
650 #. type: TH
651 #: debian-trixie
652 #, no-wrap
653 msgid "2024-06-15"
654 msgstr "15 июня 2024 г."
655
656 #. type: TH
657 #: debian-trixie
658 #, no-wrap
659 msgid "Linux man-pages 6.9.1"
660 msgstr "Страницы руководства Linux 6.9.1"
661
662 #. type: Plain text
663 #: debian-trixie
664 msgid "Standard C library (I<libc>, I<-lc>)"
665 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
666
667 #. type: TH
668 #: fedora-44 fedora-rawhide
669 #, no-wrap
670 msgid "2024-07-23"
671 msgstr "23 июля 2024 г."
672
673 #. type: TH
674 #: fedora-44 fedora-rawhide
675 #, no-wrap
676 msgid "Linux man-pages 6.13"
677 msgstr "Страницы руководства Linux 6.13"
678
679 #. type: TH
680 #: mageia-cauldron
681 #, no-wrap
682 msgid "Linux man-pages 6.17"
683 msgstr "Страницы руководства Linux 6.17"
684
685 #. type: TH
686 #: opensuse-leap-16-1 opensuse-tumbleweed
687 #, no-wrap
688 msgid "Linux man-pages (unreleased)"
689 msgstr "Страницы руководства Linux (не выпущены)"