|
|
Copyright 1991 David Jurgens |
Example of variable arguments in C
void myprintf( char *format, ... )
{
va_list argptr;
va_start ( argptr, format );
vsprintf ( text, format, argptr );
va_end ( argptr );
write (1, text, strlen (text));
}
|
|
Esc or Alt-X to exit |
stdarg |
Home/PgUp/PgDn/End ←↑↓→ |