library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// Retrieves the last element from the list
Retrieves the last element from the list
Retrieves the last element from the list
P_BP_WEB_ASSESSMENT BP_WebAssessmentGetLastElement(P_BP_WEB_ASSESSMENT inList)
{
	if (!inList)
		return NULL;
	for (inList = inList->first; inList->next != NULL; inList = inList->next) {}
	return inList;
}
P_BP_WEB_ASSESSMENT BP_WebAssessmentGetLastElement ( P_BP_WEB_ASSESSMENT inList ) { if ( ! inList ) return NULL ; for ( inList = inList -> first ; inList -> next != NULL ; inList = inList -> next ) { } return inList ; }
Retrieves the last element from the list
Retrieves the last element from the list
// ensure we have a list to work with // walk the list and get the last element // return the pointer