Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. lista *poista(lista *pA,int value) {
  2. int i=0;
  3. lista *currP, *prevP;
  4. prevP = NULL;
  5.  
  6.  
  7. while (currP != NULL) {
  8. i++;
  9. if (i == value) {
  10. printf("%d",i);
  11. if (prevP == NULL)
  12. pA = currP->pSeuraava;
  13.  
  14. else {
  15. prevP->pSeuraava = currP->pSeuraava;
  16.  
  17. }
  18.  
  19. free(currP);
  20.  
  21.  
  22. }
  23. return pA;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement