library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// Resets the first pointer in the whole list
Resets the first pointer in the whole list
Resets the first pointer in the whole list
size_t BP_ChangeWebAssessmentListFirstPointers(P_BP_WEB_ASSESSMENT inList, P_BP_WEB_ASSESSMENT newFirst)
{
	if (!inList || !newFirst)
		return ERR_FAILURE;
	for (inList = inList->first; inList; inList = inList->next)
		inList->first = newFirst;
	return ERR_SUCCESS;
}
size_t BP_ChangeWebAssessmentListFirstPointers ( P_BP_WEB_ASSESSMENT inList , P_BP_WEB_ASSESSMENT newFirst ) { if ( ! inList || ! newFirst ) return ERR_FAILURE ; for ( inList = inList -> first ; inList ; inList = inList -> next ) inList -> first = newFirst ; return ERR_SUCCESS ; }
Resets the first pointer in the whole list
Resets the first pointer in the whole list
// ensure we have an inlist, and a new first // walk the list resetting pointers // return indicating success