library/src/exploitation/WebExploitation/BP-WebExploitation.cc
/// Remove an element from the list
Remove an element from the list
Remove an element from the list
size_t BP_RemoveWebAssessmentElementFromList(P_BP_WEB_ASSESSMENT inList, P_BP_WEB_ASSESSMENT removeList)
{
	if (!inList || !removeList)
		return ERR_FAILURE;
	if (BP_WebAssessmentFindElementInList(inList, removeList)) {
		if (removeList->prev != NULL) {
			removeList->prev->next = removeList->next;
		}
		if (removeList->next != NULL) {
			removeList->next->prev = removeList->prev;
		}
		bpfree(removeList);
	}
	return ERR_SUCCESS;
}
size_t BP_RemoveWebAssessmentElementFromList ( P_BP_WEB_ASSESSMENT inList , P_BP_WEB_ASSESSMENT removeList ) { if ( ! inList || ! removeList ) return ERR_FAILURE ; if ( BP_WebAssessmentFindElementInList ( inList , removeList ) ) { if ( removeList -> prev != NULL ) { removeList -> prev -> next = removeList -> next ; } if ( removeList -> next != NULL ) { removeList -> next -> prev = removeList -> prev ; } bpfree ( removeList ) ; } return ERR_SUCCESS ; }
Remove an element from the list
Remove an element from the list