Advertisement
joaoantoniodornelas

Lista 1 - Questão 1.3

Apr 18th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. int remove(No** l, int v){
  2.     while(l->prox->v != v && l->prox != NULL){
  3.         l->prox = l->prox->prox;
  4.     }
  5.  
  6.     if(l->prox == v){
  7.         l->prox = l->prox->prox
  8.     }
  9.     else{
  10.         return 0;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement