stack.queue/stack.c
void pop() {
    if (!top) {
        printf("[ERR] Stuck underflow.\n");
        return;
    }

    Item *temp = start;
    if (!(start->next)) {
        start = NULL;
        free(top);
        top = NULL;
    } else {
        while (temp->next != top) {
            temp = temp->next;
        }
        temp->next = NULL;
        free(top);
        top = temp;
    }
}
/**
 * pop: remove the last in item of the stack
 * @return void
*/
remove the last in item of the stack
@return void
remove the last in item of the stack @return void
void pop() {
    if (!top) {
        printf("[ERR] Stuck underflow.\n");
        return;
    }
    Item *temp = start;
    if (!(start->next)) {
        start = NULL;
        free(top);
        top = NULL;
    } else {
        while (temp->next != top) {
            temp = temp->next;
        }
        temp->next = NULL;
        free(top);
        top = temp;
    }
}
void pop ( ) { if ( ! top ) { printf ( " \n " ) ; return ; } Item * temp = start ; if ( ! ( start -> next ) ) { start = NULL ; free ( top ) ; top = NULL ; } else { while ( temp -> next != top ) { temp = temp -> next ; } temp -> next = NULL ; free ( top ) ; top = temp ; } }
pop: remove the last in item of the stack
 @return void
pop : remove the last in item of the stack @return void