Variadic functions
Aus 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. |
<metanoindex/>
Variadic sind Funktionen (zB std::printf), die eine variable Anzahl von Argumenten zu nehmen .
Original:
Variadic functions are functions (e.g. std::printf) which take a variable number of arguments.
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.
Usage
Um eine variadische Funktion deklarieren, wird eine Ellipse als letzten Parameter, zB verwendet
int printf(const char *format, ...);. Übergebenen Parameter einer variadische Funktion kann über die folgenden Makros und Typen werden:Original:
To declare a variadic function, an ellipsis is used as the last parameter, e.g.
int printf(const char *format, ...);. Parameters passed to a variadic function can be accessed using the following macros and types: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.
definiert in Header
<cstdarg> | |
ermöglicht den Zugriff auf variadische Funktionsargumente Original: enables access to 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. (funktionieren Makro) | |