Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PtGenTreeRemoveChildren

PtGenTreeRemoveChildren

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PtGenTreeRemoveChildren()

Unlink all the children of a given item

Synopsis:

PtGenTreeItem_t *PtGenTreeRemoveChildren( 
                     PtGenTreeItem_t *item );

Description:

This function unlinks all the children of the given item and returns the pointer to the first of them. You can then give the pointer to PtGenTreeFreeItems().

This function doesn't collapse the item. If the children are visible, NULL is returned. Call PtGenTreeCollapse() before PtGenTreeRemoveItem() to make sure the item is collapsed.

Returns:

A pointer to the first unlinked child.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenTree, PtGenTreeItem_t