Program Base Library Functions

int pblArrayListIndexOf

( pblArrayList* arrayList,
  void* element )

Searches for the first occurence of the given argument, testing for equality uses the following rule.

Documentation

Searches for the first occurence of the given argument, testing for equality uses the following rule.

If a specific compare function is specified for the list, this compare function is used.

Otherwise if the element size of the list is set to a positive value, the c-library function memcmp() is used.

Otherwise the element pointer specified is tested for equality with the elements of the list.

Parameters:
arrayList - The list to use
element - Element to look for
Returns:
int rc >= 0: The index of the specified element
int rc < 0: The specified element is not present

Alphabetic index



This page was generated with the help of DOC++.