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