- Function
Terminate the program.
- Header
- Declaration
void __fastcall__ exit (int status);- Description
exitterminates 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 withatexitare called. Common values for status areEXIT_SUCCESSandEXIT_FAILUREwhich 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.