Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. typedef struct CHAP CHAP;
  2.  
  3. struct CHAP{
  4.  
  5. int ID;
  6. CHAP** list;
  7. int nb;
  8.  
  9. };
  10.  
  11. CHAP* find_chap(CHAP* ch, CHAP* target){
  12.  
  13. if (ch->ID == target->ID) return ch;
  14.  
  15. for (int i=0; i<ch->nb; i++){
  16. find_chap(ch->list[i], target);
  17. }
  18. //return NULL?
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement