All pastes #175026 Raw Edit

Mine

public text v1 · immutable
·published 2006-09-18 13:04 UTC
rendered paste body
Orders newElement(void) {
    Orders element;

    element = (Orders) malloc(sizeof(struct orderNode));
    assert(element != NULL);

    element->rest = NULL;
    return(element);
}



Orders addStart(Orders elements, Orders otherElement){
   Orders temp = newElement();
   
   temp->rest = elements;    
   
   temp->first.top = otherElement->first.top ;
   temp->first.bottom = otherElement->first.bottom  ;
   temp->first.stacked = otherElement->first.stacked  ;
   
   
   return temp;    
   
   

   
}