1 // SPDX-License-Identifier: 0BSD 2 3 /////////////////////////////////////////////////////////////////////////////// 4 // 5 /// \file tuklib_exit.h 6 /// \brief Close stdout and stderr, and exit 7 /// \note Requires tuklib_progname and tuklib_gettext modules 8 // 9 // Author: Lasse Collin 10 // 11 /////////////////////////////////////////////////////////////////////////////// 12 13 #ifndef TUKLIB_EXIT_H 14 #define TUKLIB_EXIT_H 15 16 #include "tuklib_common.h" 17 TUKLIB_DECLS_BEGIN 18 19 #define tuklib_exit TUKLIB_SYMBOL(tuklib_exit) 20 tuklib_attr_noreturn 21 extern void tuklib_exit(int status, int err_status, int show_error); 22 23 TUKLIB_DECLS_END 24 #endif 25