Advertisement
Guest User

Untitled

a guest
May 16th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. void porownaj(struct lista **head, struct lista **headA){
  2.  
  3. if((*head)!=NULL && (*headA)!=NULL){
  4.  
  5. struct lista *walker1=(*head);
  6. struct lista *walker2=(*headA);
  7.  
  8. while(walker1->next!=NULL){
  9. while(walker2->next!=NULL){
  10. if(walker1->key==walker2->key){
  11. int x=walker1->key;
  12. add_head_por(&headB,x);
  13. walker2=walker2->next;
  14.  
  15. }
  16. walker2=walker2->next;
  17.  
  18. }
  19. walker1=walker1->next;
  20. }
  21.  
  22.  
  23. }
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement