aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
new file mode 100644
index 0000000..d87fd72
--- /dev/null
+++ b/src/util.c
@@ -0,0 +1,13 @@
+#include <stdarg.h>
+#include <stdio.h>
+
+#include "runes.h"
+
+void runes_warn(const char *fmt, ...)
+{
+ va_list ap;
+ va_start(ap, fmt);
+ /* XXX make this do something else on windows */
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+}