Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //.h
- typedef struct s_coord
- {
- int x;
- int y;
- char c;
- struct s_coord *next;
- } t_coord;
- //.c
- void push_coord(t_coord **coords, int x, int y, char c)
- {
- t_coord *ret;
- if (coords && *coords)
- {
- ret = *coords;
- while (ret->next)
- ret = ret->next;
- ret->next = create_coord(x, y, c);
- }
- else
- *coords = create_coord(x, y, c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement