home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
turbo_c
/
tc130.arc
/
EXIT2DOS.DOC
< prev
next >
Wrap
Text File
|
1987-08-20
|
801b
|
39 lines
NAME
exit2dos -- permission to exit program
SYNOPSIS
void exit2dos();
DESCRIPTION
When invoked, this function clears the screen and places
the message "Exit to DOS?" in the center of the display.
The keyboard is read, and if the response is 'Y' or 'y',
an aabort(0) function is called. For any other response,
the function simply returns to the users program, which
must then do whatever is necessary to continue with the
program.
EXAMPLE
if(getche() == ESC) exit2dos(); /* watch for ESCape key */
else domorework();
This function is found in SMTCx.LIB for the Turbo-C Compiler