Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct node { void *data; void *next; };
- void make_node(struct node *item);
- void func1(void);
- void create_vertices(struct node **array, int arrsize);
- void create_vertices(struct node *vertices[20], int index)
- {
- for (int i = 0; i < index; i++)
- make_node(vertices[i]);
- }
- void func1(void)
- {
- struct node *vertices[20];
- create_vertices(&vertices, 20);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement