voidSHListLinkPushBack(pSHList pshlist, SHDataType d){assert(pshlist);
pSHNode pnode =SHBuyNode(d);
pSHList cur = pshlist;while(NULL!= cur->next){
cur = cur->next;}
cur->next = pnode;}
尾部删除
voidSHListLinkPopBack(pSHList pshlist){assert(pshlist);
pSHList cur = pshlist;if(NULL== cur->next){return;}while(NULL!= cur->next->next){
cur = cur->next;}
pSHList del = cur->next;
cur->next =NULL;free(del);
del =NULL;}
voidSHListLinkPopFront(pSHList pshlist){assert(pshlist);
pSHList cur = pshlist;if(NULL== cur->next){return;}
pSHList del = cur->next;
cur->next = cur->next->next;free(del);
del =NULL;}
销毁
voidSHListLinkDelete(pSHList* ppshlist){assert(ppshlist &&*ppshlist);while(NULL!=*ppshlist){
pSHList del =*ppshlist;(*ppshlist)=(*ppshlist)->next;free(del);
del =NULL;}}