NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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.

Functions

void mutt_exit (int code)
 Leave NeoMutt NOW.
 

Detailed Description

Leave the program NOW.

Authors
  • 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 http://www.gnu.org/licenses/.

Definition in file exit.h.

Function Documentation

◆ mutt_exit()

void mutt_exit ( int  code)

Leave NeoMutt NOW.

Parameters
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
main.c

Definition at line 269 of file main.c.

270{
271 mutt_endwin();
272#ifdef USE_DEBUG_BACKTRACE
273 if (code != 0)
275#endif
276 exit(code);
277}
void show_backtrace(void)
Log the program's call stack.
Definition: backtrace.c:39
void mutt_endwin(void)
Shutdown curses.
Definition: curs_lib.c:151
+ Here is the call graph for this function:
+ Here is the caller graph for this function: