Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. struct node { void *data; void *next; };
  2.  
  3. void make_node(struct node *item);
  4. void func1(void);
  5. void create_vertices(struct node **array, int arrsize);
  6.  
  7. void create_vertices(struct node *vertices[20], int index)
  8. {
  9. for (int i = 0; i < index; i++)
  10. make_node(vertices[i]);
  11. }
  12.  
  13. void func1(void)
  14. {
  15. struct node *vertices[20];
  16. create_vertices(&vertices, 20);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement