# NNS_FndCheckExpHeap

## C Specification

      #include <nnsys/fnd.h>

      BOOL NNS_FndCheckExpHeap(
      NNSFndHeapHandle    heap,
      u32                 optFlag );

## Arguments

heap | Extended heap handle
optFlag | The check option (see the Description section).

## Return Values

Returns TRUE if no errors are found in the extended heap. Returns FALSE if an error is found.

## Description

Checks whether the extended heap is corrupted. Specifically, it checks whether the management region for each memory block in the extended heap is normal.

The `optFlag` specifies the check options.

NNS_FND_HEAP_ERROR_PRINT | If an error is found in a heap, this outputs the error content using the `OS_Printf()` function.

This function is used for debugging. The final ROM version (`FINALROM`) does not do anything and always returns `TRUE`.

## See Also

`NNS_FndCheckForMBlockExpHeap`

## Revision History

10/28/2004 Added description of the final ROM limitations
08/20/2004 Initial version.