[Previous] [Contents] [Index] [Next]

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. If it finds the item, the function returns the item's position. Otherwise, it returns 0.

Returns:

n
The position of the item.
0
The item wasn't found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtListItemExists()


[Previous] [Contents] [Index] [Next]