Variable Arguments
A very useful example:
#include <stdarg.h>
void Abort( char *fmt, ... )
{
va_list args;
va_start( args, fmt );
fprintf( stderr, "\n\t" );
vfprintf( stderr, fmt, args );
fprintf( stderr, "\n\n" );
va_end( args );
exit( -1 );
}
Previous slide
Next slide
Back to first slide
View graphic version