Another printf-type question

Gary S. Moss SLCBR-VLD-V moss at BRL.ARPA
Mon Jul 28 23:31:12 AEST 1986


If you don't have the vprintf() library, but do have a _doprnt(), this may be
a more desirable, non-portable solution than limiting yourself to 8 args...

-moss

#include <stdio.h>
#include <varargs.h>
/* VARARGS */
void
prnt_rvideo( fmt, va_alist )
char	*fmt;
va_dcl
	{	va_list		ap;
	va_start( ap );
	(void) printf( <turn ON standout mode> );
	(void) _doprnt( fmt, ap, stdout );
	(void) printf( <turn OFF standout mode> );
	va_end( ap );
	return;
	}



More information about the Comp.lang.c mailing list