Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void RemoveFunc(Lista *L, char *cod)
- {
- if(L == NULL || cod == NULL)
- return;
- NO *aux = L->Inicio;
- NO *ant = NULL
- while(aux)
- {
- if(stricmp(aux->Info->cod, cod) == 0)
- {
- if(!ant) //primeiro na lista
- L->Inicio = aux->Prox;
- else
- ant->Prox = aux->Prox;
- free(aux);
- return;
- }
- ant = aux;
- aux = aux->Prox;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement