Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void funcao(Nodo **lista, int info){
- int aux = 1;
- Nodo *no1, *no2 = NULL;
- if(info == 1){
- no2 = *lista;
- *lista = no2->prox;
- }else{
- for(no1 = *lista; no1->prox != NULL; no1 = no1->prox){
- aux++;
- if(aux == info)
- break;
- }
- no2 = no1->prox;
- no1->prox = no2->prox;
- }
- free(no2);
- }
Advertisement
Add Comment
Please, Sign In to add comment