- Function
Terminate the program.
- Header
- Declaration
void __fastcall__ exit (int status);
- Description
exit
terminates the program. The argument specifies the return code of the program. Before termination, all files are closed, buffered output is written and any functions registered withatexit
are called. Common values for status areEXIT_SUCCESS
andEXIT_FAILURE
which are also defined instdlib.h
.- Limits
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- It depends on the host machine if the program return code can be evaluated or is ignored.
- Availability
ISO 9899
- See also
- Example
None.