void exit(int rc);
This system call implements the POSIX _exit function, which terminates the program without calling C library cleanup functions such as atexit() handlers. However, all memory allocated by the program is still freed, open file descriptors are closed, etc.
- rc
- The exit code to return to DOS.