Status list_push_front(LinkedList head, ElmType data){ if(head==NULL){ return ERROR; } LinkedList p; p->data=data; p->next=head->next; head->next=p; return OK; }
Status list_push_front(LinkedList head, ElmType data){ if(head==NULL){ return ERROR; } LinkedList p; p->data=data; p->next=head->next; head->next=p; return OK; }