Advertisement
Guest User

Untitled

a guest
Apr 20th, 2010
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdlib.h>
  2.  
  3. struct list_head {
  4. struct list_head *next, *prev;
  5. };
  6.  
  7. #define LIST_HEAD_INIT(name) { &(name), &(name) }
  8.  
  9. #define LIST_HEAD(name) \
  10. struct list_head name = LIST_HEAD_INIT(name)
  11.  
  12. #define check 0
  13.  
  14. int main ()
  15. {
  16. struct list_head test = LIST_HEAD (check);
  17. return EXIT_SUCCESS;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement