Logo

Programming-Idioms

History of Idiom 87 > diff from v3 to v4

Edit summary for version 4 by :

Version 3

2015-09-14, 19:08:53

Version 4

2015-09-17, 06:10:13

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.

Code
halt(0);
Comments bubble
halt(error_code);

0 for no error.
Demo URL
https://ideone.com/mUVLG3