kolibrios/programs/develop/ktcc/trunk/libc/stdlib/exit.c
siemargl 524cab3cd8 added read buffering, ungetc
git-svn-id: svn://kolibrios.org@7184 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-03-12 20:41:06 +00:00

11 lines
270 B
C

#include <stdlib.h>
#include <conio.h>
#include <kolibrisys.h>
void exit (int status)
/* close console if was initialized, also stay window [finished] when status is error < 0 */
{
if (__console_initdll_status)
con_exit(status > 0);
_ksys_exit();
}