home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ENTERPRS
/
CPM
/
UTILS
/
S
/
SMC21LIB.LZH
/
EXIT.C
< prev
next >
Wrap
Text File
|
2000-06-30
|
512b
|
21 lines
#define NOCCARGC
#include stdio.h
#include clib.def
/*
** Close all open files and exit to CP/M.
** Entry: errcode = Character to be sent to stderr.
** Returns to CP/M rather than caller.
*/
exit(errcode) char errcode; {
int fd;
if(errcode) _conout(errcode);
for(fd=0; fd < MAXFILES; fclose(fd++));
_bdos(GOCPM, NULL);
}
#asm
abort equ exit
entry abort
#endasm