NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
exit.h File Reference

Leave the program NOW. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void mutt_exit (int code)
 Leave NeoMutt NOW. More...

Detailed Description

Leave the program NOW.

  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file exit.h.

Function Documentation

◆ mutt_exit()

void mutt_exit ( int  code)

Leave NeoMutt NOW.

codeValue to return to the calling environment

Some library routines want to exit immediately on error. By having this in the library, mutt_exit() can be overridden.

See also

Definition at line 279 of file main.c.

280 {
281  mutt_endwin();
283  if (code != 0)
284  show_backtrace();
285 #endif
286  exit(code);
287 }
void mutt_endwin(void)
Shutdown curses/slang.
Definition: curs_lib.c:422
void show_backtrace(void)
Log the program's call stack.
Definition: backtrace.c:39
+ Here is the call graph for this function:
+ Here is the caller graph for this function: