va_start
Материал из cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Заголовочный файл <cstdarg>
|
|||||||||||
| void va_start(va_list ap, parm_n); |
||
Макрос
va_start позволяет получить доступ к переменной аргументы после имени аргумента parm_n. Original:
The
va_start macro enables access to the variable arguments following the named argument parm_n. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
va_start должен быть вызван с экземпляром на допустимый объект va_list ap перед вызовом va_arg.Original:
va_start should be invoked with an instance to a valid va_list object ap before any calls to va_arg.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Содержание |
[править] Параметры
| ap | - | Экземпляр va_list типа
Original: an instance of the va_list type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| parm_n | - | именованный параметр, предшествующих первой переменной параметра
Original: the named parameter preceding the first variable parameter The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Расширенное значение
(Нет)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[править] Пример
Вывод:
150
[править] См. также
| доступ к следующим переменным числом аргументов функции Original: accesses the next variadic function argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция-макрос) | |
| заканчивается обход переменным числом аргументов функции Original: ends traversal of the variadic function arguments The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция-макрос) | |