Add _Exit() function from C99.

This exits the programs without calling atexit functions and possibly without doing other clean-up operations. In ORCA/C, it is functionally identical to _exit().
This commit is contained in:
Stephen Heumann 2018-09-09 23:23:19 -05:00
parent 24ec2ae9bc
commit efab82784d
1 changed files with 4 additions and 0 deletions

View File

@ -301,6 +301,9 @@ div_t ds 4
* void _exit(status)
* int status;
*
* void _Exit(status)
* int status;
*
* Stop the program. Exit cleans up, _exit does not. Status
* is the status returned to the shell.
*
@ -313,6 +316,7 @@ exit start
jsr ~EXIT
_exit entry
_Exit entry
lda 4,S
jmp ~QUIT
end