# NNS_FndGetAllocDirForMBlockExpHeap

## Syntax

      #include <nnsys/fnd.h>

      u16 NNS_FndGetAllocDirForMBlockExpHeap(const void* memBlock);

## Arguments

memBlock | Pointer to the memory block that obtains the allocation direction. See below for more information on allocation direction.

## Return Values

Returns the designated memory block allocation direction.

## Description

This function obtains the allocation direction of the allocated memory block from the extended heap.

The allocation direction takes one of the following values:

NNS_FND_EXPHEAP_ALLOC_DIR_FRONT | Allocates from the front of the empty region of the extended heap when the memory block is allocated.
NNS_FND_EXPHEAP_ALLOC_DIR_REAR | Allocates from the rear of the empty region of the extended heap when the memory block is allocated.

## See Also

`NNS_FndGetSizeForMBlockExpHeap, NNS_FndGetGroupIDForMBlockExpHeap
`

## Revision History

2004/04/01 Initial version.

CONFIDENTIAL