stack.queue/stack.c
void push(Item *newItem) {
    if (!newItem) {
        printf("[ERR] Invalid item.\n");
        return;
    } else if (!start) {
        start = newItem;
        top = newItem;
    } else {
        Item *temp;
        temp = start;

        while (temp->next) {
            temp = temp->next;
        }
        temp->next = newItem;
        top = newItem;
    }
}
/**
 * push: pushes (inserts) an item to the stack (you get the item with the createItem function)
 * @param newItem a pointer to new Item to be pushed
 * @return void
*/
pushes (inserts) an item to the stack (you get the item with the createItem function)
@param newItem a pointer to new Item to be pushed
@return void
pushes ( inserts ) an item to the stack ( you get the item with the createItem function ) @param newItem a pointer to new Item to be pushed @return void
void push(Item *newItem) {
    if (!newItem) {
        printf("[ERR] Invalid item.\n");
        return;
    } else if (!start) {
        start = newItem;
        top = newItem;
    } else {
        Item *temp;
        temp = start;
        while (temp->next) {
            temp = temp->next;
        }
        temp->next = newItem;
        top = newItem;
    }
}
void push ( Item * newItem ) { if ( ! newItem ) { printf ( " \n " ) ; return ; } else if ( ! start ) { start = newItem ; top = newItem ; } else { Item * temp ; temp = start ; while ( temp -> next ) { temp = temp -> next ; } temp -> next = newItem ; top = newItem ; } }
push: pushes (inserts) an item to the stack (you get the item with the createItem function)
 @param newItem a pointer to new Item to be pushed
 @return void
push : pushes ( inserts ) an item to the stack ( you get the item with the createItem function ) @param newItem a pointer to new Item to be pushed @return void