registro * insercao(registro * head, char nome[50],float nota)
{
struct registro * novoR = (struct registro *) malloc (sizeof(struct registro));
novoR->next=NULL;
novoR->prev=NULL;
novoR->nota=nota;
struct registro * RegList;
strcpy(novoR->nome,nome);
if(head==NULL)
{
head=novoR;
return head;
}
else
{
printf("Estou aqui");
RegList=head;
while(RegList!=NULL)
{
printf("Estou aqui");
RegList=RegList->next;
}
RegList->next=novoR;
return head;
}
}