# NNS_FndSetFillValForHeap

## Syntax

      #include <nnsys/fnd.h>

      u32 NNS_FndSetFillValForHeap(int type, u32 val);

## Arguments

`type` | Type of process that sets the value
`val` | The value to be set (32-bit)

## Return Values

Returns the value filled in the designated memory type that was previously set.

## Description

This function obtains the 32-bit value in memory at the time of heap creation and memory block allocation/deallocation. Different values can be set for each at the time of heap creation and memory block allocation/deallocation. The type that obtains these is designated with the `type` argument. The `type` argument can take one of the following values:

`NNS_FND_HEAP_FILL_NOUSE` | Heap creation time
`NNS_FND_HEAP_FILL_ALLOC` | Memory block allocation time
`NNS_FND_HEAP_FILL_FREE` | Memory block deallocation time

This function is used for debugging. It has no functionality in the final ROM version (FINALROM).

## See Also

`NNS_FndGetFillValForHeap, NNS_FndCreateExpHeapEx, NNS_FndCreateFrmHeapEx, NNS_FndCreateUnitHeapEx
`

## Revision History

2004/04/01 Initial version.

CONFIDENTIAL