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)); }
void myprintf( char *format, ... ) { va_list argptr; va_start ( argptr, format ); vsprintf ( text, format, argptr ); va_end ( argptr ); write (1, text, strlen (text)); }