Logo

Programming-Idioms

History of Idiom 87 > diff from v4 to v5

Edit summary for version 5 by :

Version 4

2015-09-17, 06:10:13

Version 5

2015-09-17, 06:18:45

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

Imports
import core.stdc.stdlib;
Code
exit(0);
Comments bubble
exit(return_code).
0 means normal termination.
Demo URL
https://ideone.com/euOmXN