# NNS_G3dGetParentNodeID

## C Specification

      #include <nnsys/g3d/util.h>

      const u8*
      NNS_G3dGetParentNodeID(
      int* parentID,
      const u8* sbc,
      u32 nodeID
      );

## Arguments

parentID | Parent ID
sbc | Pointer to the SBC code string
nodeID | The node ID

## Return Values

Returns the pointer to the `NODEDESC` command that configures the `nodeID`.

## Description

Stores the ID (`*parentID`) of the node that will be the `nodeID` parent. The return value is the pointer to the `NODEDESC` command that configures `nodeID`. If no parent ID is found, a `NULL` is returned and the `*parentID` does not change.

## See Also

`NNS_G3dGetChildNodeIDList`

## Revision History

08/02/2004 Initial version.