kennen:lib:vprintf
no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:vprintf [2012-04-11 17:24] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== vprintf() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | int vprintf (const char *format, va_list ap) | ||
+ | </ | ||
+ | | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[printf]], | ||
+ | [[vfprintf]], | ||
+ | [[vsprintf]], | ||
+ | [[va_start]], | ||
+ | [[va_end]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp vprintf.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | using namespace std; | ||
+ | |||
+ | int vpf(char *fmt, ...) | ||
+ | { | ||
+ | va_list argptr; | ||
+ | va_start(argptr, | ||
+ | int cnt = vprintf(fmt, | ||
+ | va_end(argptr); | ||
+ | return(cnt); | ||
+ | } | ||
+ | |||
+ | int main(void) | ||
+ | { | ||
+ | int i = 30; | ||
+ | float f = 90.0; | ||
+ | char *s = " | ||
+ | vpf(" | ||
+ | return 0; | ||
+ | } | ||
+ | </ | ||
kennen/lib/vprintf.txt · Zuletzt geändert: 2012-04-11 17:24 von 127.0.0.1