Fix typo
[rofl0r-order-pp.git] / example / lambda / error.c
blobd6d02fa5a254f3d507adcdd41d8fc8647af1b50f
1 // (C) Copyright Vesa Karvonen 2004.
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE.)
6 #include "error.h"
7 #include <stdarg.h>
8 #include <stdio.h>
9 #include <stdlib.h>
11 void error(const char* msg, ...) {
12 va_list args;
13 va_start(args, msg);
14 fprintf(stderr, "ERROR: ");
15 vfprintf(stderr, msg, args);
16 fprintf(stderr, "\n");
17 va_end(args);
18 exit(EXIT_FAILURE);