AutoPatrol, Bureaucrats, Administrators
683
edits
Tomas Kirnak (talk | contribs) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Exit from script | Exit from script. This function never returns. | ||
== Syntax == | == Syntax == | ||
exit; | exit(''code''); | ||
== Parameters == | == Parameters == | ||
{| class="wikitable" | |||
|- | |||
| ''code'' || Exit code (optional, 0 will be used by default). | |||
|} | |||
Line 20: | Line 23: | ||
== Examples == | == Examples == | ||
exit; | <syntaxhighlight lang="c"> | ||
exit(); // exit with code 0 | |||
exit(42); // exit with code 42 | |||
</syntaxhighlight> |