# OS_FExit

## Syntax

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

## Arguments

console | Output window.
status | Exit status

## Return Values

None.

## Description

Displays a termination message, puts the CPU in HALT status, and loops.

The only difference between this function and `OS_Exit()` is that this function allows the output destination to be specified. For a description of the rest, refer to the function reference for `OS_Exit()`.

console is used to specify the output destination and can take values from 0 to 3, indicating the window number. Specify `OS_PRINT_OUTPUT_NONE` to output nothing. Specifying `OS_PRINT_OUTPUT_CURRENT` will output to the error output destination that was specified using `OS_SetPrintOutput()`.

## See Also

`OS_Exit, OS_SetPrintOutput`

## Revision History

2008/05/23 Initial version.

CONFIDENTIAL