📅  最后修改于: 2022-03-11 15:04:42.260000             🧑  作者: Mango
struct node *copyList(struct node *sourceList)
{
if(sourceList==NULL) return;
struct node *targetList=(struct node *) malloc(sizeof(struct node));
targetList->info=sourceList->info;
targetList->link=copy(sourceList->link);
return targetList;
}