summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pk/basics.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ps2pk/basics.c')
-rw-r--r--Build/source/texk/ps2pk/basics.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/Build/source/texk/ps2pk/basics.c b/Build/source/texk/ps2pk/basics.c
new file mode 100644
index 00000000000..6b1842d5eaa
--- /dev/null
+++ b/Build/source/texk/ps2pk/basics.c
@@ -0,0 +1,27 @@
+/* FILE: basics.c
+ * PURPOSE: basic functions
+ * AUTHOR: Piet Tutelaers
+ * (see README for license)
+ */
+
+#include "basics.h"
+
+/* Give up ... */
+void fatal(const char *fmt, ...)
+{ va_list args;
+
+ va_start(args, fmt);
+ vfprintf(stderr, fmt, args);
+ va_end(args);
+ exit(1);
+}
+
+/* Give a message ... */
+void msg(const char *fmt, ...)
+{ va_list args;
+
+ va_start(args, fmt);
+ vfprintf(stderr, fmt, args);
+ fflush(stderr);
+ va_end(args);
+}