# NNS_FndSetGroupIDForExpHeap

## Syntax

      #include <nnsys/fnd.h>

      u16 NNS_FndSetGroupIDForExpHeap(
      	      NNSFndHeapHandle    heap,
      	      u16                 groupID);

## Arguments

heap | Expanded heap handle
groupID | Group ID (0-255) to be set.

## Return Values

Returns the previous group ID.

## Description

Sets the group ID of the expanded heap.

The memory blocks allocated from the expanded heap each have their own group ID, and this value carries over to the group ID value set in the heap when the memory block is allocated.

Immediately after creation of the heap, the group ID becomes 0.

## See Also

`NNS_FndGetAllocModeForExpHeap
`

## Revision History

2004/04/28 The value of the group ID after creation of the heap was incorrect. This has been fixed.
2004/04/01 Initial version.

CONFIDENTIAL