1struct node *copyList(struct node *sourceList)
2{
3 if(sourceList==NULL) return;
4 struct node *targetList=(struct node *) malloc(sizeof(struct node));
5 targetList->info=sourceList->info;
6 targetList->link=copy(sourceList->link);
7 return targetList;
8}
9