Rocco Rutte:
[apps/madmutt.git] / lib / exit.c
1
2 #include <stdlib.h>
3 #include <stdio.h>
4
5 #include "exit.h"
6 #include "str.h"
7 #include "intl.h"
8
9 /* XXX remove after modularization*/
10 /*extern void mutt_endwin (void*);*/
11
12 void exit_fatal (const char* func, const char* msg, int line, 
13                  const char* fname, int code) {
14 /*  mutt_endwin (NULL);*/
15   fprintf (stderr, _("Fatal error in function '%s' called from "
16                      "file '%s', line '%d': %s\n"
17                      "(please report this error to "
18                      "<mutt-ng-devel@lists.berlios.de>\n"),
19            NONULL(func), NONULL(fname), line, NONULL(msg));
20   exit (code);
21 }