mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
651 B
34 lines
651 B
/***
|
|
*exit.c -
|
|
*
|
|
* Copyright (c) 1993-1995, Microsoft Corporation. All rights reserved.
|
|
*
|
|
*Purpose:
|
|
*
|
|
*Revision History:
|
|
* ??-??-?? ??? Module created.
|
|
* 02-24-95 SKS Added standard comment header
|
|
*
|
|
*******************************************************************************/
|
|
|
|
#include <cruntime.h>
|
|
#include <msdos.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/* worker routine prototype */
|
|
void _CALLTYPE4 doexit (int code, int quick, int retcaller);
|
|
|
|
void _CALLTYPE1 exit (
|
|
int code
|
|
)
|
|
{
|
|
doexit(code, 0, 0); /* full term, kill process */
|
|
}
|
|
|
|
void _CALLTYPE1 _exit (
|
|
int code
|
|
)
|
|
{
|
|
doexit(code, 1, 0); /* quick term, kill process */
|
|
}
|