tilz0R

Untitled

Feb 18th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. //Since you have pointers, you have to use double pointers to change pointer where it points to (maybe sounds confusing)
  2. //Declaration in kernel.c
  3. void getLists(struct list** l1, struct list** l2, ........) {
  4.     *l1 = Readylist1;
  5.     *l2 = Readylist2
  6. }
  7.  
  8. //Usage in main.
  9. struct list* l1, *l2;
  10.  
  11. //Get pointers
  12. getLists(&l1, &l2);
Advertisement
Add Comment
Please, Sign In to add comment