Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(aux2) {
- lista_pdi u = aux2->lista_pdi_local->next;
- while (u) {
- if (strcmp(u->nome, pdi_name) == 0) {
- novo_no = (lista_users_pdi) malloc(sizeof(PDI_USERS));
- novo_no->pdi = u;
- novo_no->next= NULL;
- while (aux_pdi->next != NULL){
- aux_pdi = aux_pdi->next;
- }
- aux_pdi->next =novo_no;
- novo_no->next = NULL;
- }
- u = u->next;
- }
- free(u);
- aux2 = aux2->next;
- }
- free(aux2);
- verifica++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement