I have to delete the elements recursively from a list doubly linked from last to first. In addition, it has a pointer at the beginning and another at the end. I do not know what the error is.
void eliminar (lista DE, PPF){
if (DE==NULL)
return DE;
else{
lista temp = ppf.ultimo;
ppf.ultimo = ppf.ultimo-> anterior;
delete temp;
return eliminar (temp, PPF);
}
}