ack/util/ceg/EM_parser/as_EM_pars/error.c
1988-09-09 11:32:59 +00:00

21 lines
292 B
C

#include <system.h>
#include <varargs.h>
extern int nerrors;
/*VARARGS*/
error(va_alist)
va_dcl
{
char *fmt;
va_list pvar;
va_start(pvar);
fmt = va_arg(pvar, char *);
fprint( STDERR, "!! ERROR : ");
doprnt( STDERR, fmt, pvar);
fprint( STDERR, " !!\n");
va_end(pvar);
nerrors++;
}