openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_LIST_Search()

void * BSL_LIST_Search ( BslList pList,
const void *  pSearchFor,
BSL_LIST_PFUNC_CMP  pSearcher,
int32_t *  pstErr 
)

This function searches a list based on the comparator function supplied (3rd param). The second param is given to the comparator as its second param and each data item on the list is given as its first param while searching. The comparator must return 0 to indicate a match.

Parameters
pList[IN] The list
pSearchFor[IN] The element to be searched
pSearcher[IN] The pointer to the comparison function of data
Return values
Void*The element which was found [Void*]
Void*If none found [NULL]