Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void exploreNorth(struct Node n, struct Path *p){
- fprintf(stderr,"start\n");
- struct Path *path = {NULL,0,0};
- fprintf(stderr,"%i %i\n",n.x,n.y);
- if(n.north == NULL){
- p = path;
- return;
- }
- fprintf(stderr,"pre\n");
- exploreNorth((*n.north),p->next);
- fprintf(stderr,"post\n");
- p->length = p->next->length + 1;
- p->dir = 0;
- fprintf(stderr,"end\n");
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement