wmail: moved old change-log to a separate file.
[dockapps.git] / wmmenu / error.c
blob641598ef6ef462b4e11dec127ad4a9ef9f16fed1
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <stdarg.h>
4 #include <assert.h>
6 #include "error.h"
8 extern void warn (const char * fmt, ...)
10 va_list args ;
12 assert (fmt != NULL) ;
13 va_start (args, fmt) ;
14 fprintf (stderr, "wmmenu warning: ") ;
15 vfprintf (stderr, fmt, args) ;
16 fprintf (stderr, "\n") ;
17 va_end (args) ;
20 extern void error (const char * fmt, ...)
22 va_list args ;
24 assert (fmt != NULL) ;
25 va_start (args, fmt) ;
26 fprintf (stderr, "wmmenu error: ") ;
27 vfprintf (stderr, fmt, args) ;
28 fprintf (stderr, "\n") ;
29 va_end (args) ;
31 exit (EXIT_FAILURE) ;