openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_LIST_GetElmtIndex()

int32_t BSL_LIST_GetElmtIndex ( const void *  elmt,
BslList pstList 
)

This function returns the index (starting a 0 for the first element) of the given element in the given list. Returns -1, if the element is not in the list. Assumes that the list node contains a single pointer.

参数
elmt[IN] The element whose index is to be retrieved
pstList[IN] The list to which the element belongs to
返回值
int32_tThe index of the specified element in the given list [int32_t]
int32_tIf the element is not found in the list [-1]