# OS_Exit

## C Specification

  `#include <nitro/os.h>`
  `void OS_Exit( int status );`

## Arguments

status | Exit status

## Return Values

None.

## Description

Displays the reason for termination, puts the CPU in HALT status, and loops. There is no return from this function. (`OS_Terminate()` is called internally.)

The status given by status is displayed.

If this function is called when using `loadrun` and/or `nitrorun`, the reason for termination is displayed and control is returned to the prompt on the console.

## See Also

`OS_Terminate, loadrun, nitrorun`

## Revision History

08/31/2004 Initial version.

CONFIDENTIAL