simplify block_try function.
[apps/madmutt.git] / extlib.c
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 /* 
11  * Some simple dummies, so we can reuse the routines from
12  * lib.c in external programs.
13  */
14
15 #define WHERE
16 #define _EXTLIB_C
17
18 #if HAVE_CONFIG_H
19 # include "config.h"
20 #endif
21
22 #include <stdlib.h>
23 #include "lib.h"
24
25 void (*mutt_error) (const char *, ...) = mutt_nocurses_error;
26
27 void mutt_exit (int code)
28 {
29   exit (code);
30 }