[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 9.108 Halt

### Synopsis

    Halt;

or

    Halt (ExitCode: Integer);

### Description

``Halt'` terminates the program with exitcode 0. If ``ExitCode'`, is specified, it is returned by ``Halt'` on exit.

### Conforming to

``Halt'` is a UCSD Pascal extension.

### Example

    program HaltDemo;
    begin
      WriteLn ('This string will always be this program''s output.');
      Halt;  { Terminate right here and right now. }
      WriteLn ('And this string won''t ever!')
    end.

### See also

section 9.30 Break, section 9.52 Continue, section 9.77 Exit, section 9.231 Return, section 9.106 goto.

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html