Advertisement
Guest User

Untitled

a guest
May 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. while(aux2) {
  2.  
  3. lista_pdi u = aux2->lista_pdi_local->next;
  4. while (u) {
  5.  
  6. if (strcmp(u->nome, pdi_name) == 0) {
  7.  
  8. novo_no = (lista_users_pdi) malloc(sizeof(PDI_USERS));
  9. novo_no->pdi = u;
  10. novo_no->next= NULL;
  11.  
  12. while (aux_pdi->next != NULL){
  13. aux_pdi = aux_pdi->next;
  14. }
  15.  
  16. aux_pdi->next =novo_no;
  17. novo_no->next = NULL;
  18. }
  19.  
  20. u = u->next;
  21.  
  22. }
  23. free(u);
  24.  
  25.  
  26.  
  27. aux2 = aux2->next;
  28. }
  29. free(aux2);
  30.  
  31. verifica++;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement