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