Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtGenListItemIndex()

Find the index of an item

Synopsis:

int PtGenListItemIndex( 
        PtWidget_t const *list, 
        PtGenListItem_t const *item );

Description:

This function calculates the index of the given item within the list. The index of the first item is 1.

Returns:

The index of the given item.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenList, PtGenListItem_t