openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_LIST_Copy()

BslList * BSL_LIST_Copy ( BslList pSrcList,
BSL_LIST_PFUNC_DUP  pFuncCpy,
BSL_LIST_PFUNC_FREE  pfFreeFunc 
)

This function dups a list by copying the list by creating a copy of list and returns the destinaton list pointer.

参数
pSrcList[IN] The list
pFuncCpy[IN] The dup function for the data in the node
pfFreeFunc[IN] The pointer to the free function for the data in the node of data
返回值
BslList*The duplicated List pointer [BslList*]
BslList*If dup failed or memory allocation fails.[NULL]