*x = L->list[i]; /* Save the deleted element to parameter x */
for(j = i+1; j <= L->size-1; j++)
L->list[i] = L->list[i+1];
L->size--; /* The number of data elements is reduced by 1*/
return 1;
I can't delete the node fully, instead of this, its just replacing the value, but the node itself is not deleted