aboutsummaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/msg.c b/msg.c
index 4bd9f901..0ddd0715 100644
--- a/msg.c
+++ b/msg.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc.
+ * Copyright (C) 1986, 1988, 1989, 1991-1995 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Progamming Language.
@@ -90,6 +90,20 @@ va_dcl
/*VARARGS0*/
void
+error(va_alist)
+va_dcl
+{
+ va_list args;
+ char *mesg;
+
+ va_start(args);
+ mesg = va_arg(args, char *);
+ err("error: ", mesg, args);
+ va_end(args);
+}
+
+/*VARARGS0*/
+void
fatal(va_alist)
va_dcl
{