Personal I have a question of where and how should I change to this function to print circular list is correct.
Below is a print function from a linked list:
void imprime_lista(tipo_lista* p)
{
while (p != NULL)
{
printf("%d\n", p->info);
p = p -> prox;
}
printf("\n");
}