library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// Append an assessment to an existing list
Append an assessment to an existing list
Append an assessment to an existing list
size_t BP_AppendWebAssessmentList(P_BP_WEB_ASSESSMENT inList, P_BP_WEB_ASSESSMENT appendList)
{
	if (!inList || !appendList)
		return ERR_FAILURE;
	P_BP_WEB_ASSESSMENT last = BP_WebAssessmentGetLastElement(inList);
	if (!last)
		return ERR_FAILURE;
	last->next = appendList;
	BP_ChangeWebAssessmentListFirstPointers(appendList, inList->first);
	appendList->prev = last;
	return ERR_SUCCESS;
}
size_t BP_AppendWebAssessmentList ( P_BP_WEB_ASSESSMENT inList , P_BP_WEB_ASSESSMENT appendList ) { if ( ! inList || ! appendList ) return ERR_FAILURE ; P_BP_WEB_ASSESSMENT last = BP_WebAssessmentGetLastElement ( inList ) ; if ( ! last ) return ERR_FAILURE ; last -> next = appendList ; BP_ChangeWebAssessmentListFirstPointers ( appendList , inList -> first ) ; appendList -> prev = last ; return ERR_SUCCESS ; }
Append an assessment to an existing list
Append an assessment to an existing list
// ensure we have an inlist, and an append list // navigate to the last entry // set next pointer // reset all the first pointers in the appending list // link up the list // return indicating success