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

PtListItemPos()

Determine the position of an item in a list

Synopsis:

int PtListItemPos( PtWidget_t *widget,
                   const char *item );

Description:

This function performs a linear search on the list for the specified item.

Returns:

The position of the item, or 0 if it wasn't found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtList, PtListItemExists()