LeonorMalaga / gt_datalib

Práctica 2 del Taller de Git y GitHub de 42 Málaga
https://view.genial.ly/63a443410483340018b52bed/presentation-42-taller-de-git-y-github
0 stars 1 forks source link

stk_pop #27

Closed Sopadepuchero closed 3 months ago

Sopadepuchero commented 3 months ago

t_stack *stk_pop(t_stack *stack) { t_stack aux;

if (*stack == NULL)
    return (NULL);
aux = *stack;
*stack = (*stack)->next;
aux->next = NULL;
return (aux);

}

juan-est145 commented 3 months ago

The function has been completed