I've finished all the TODO's now, but I'm having trouble concatenating absolute path and root.
I've been all day trying different ways to do it, but still doesn't work. I hope someone can help.
Here's my code:
char path[strlen(root) + absp_len + 1]; strcpy(path, root); strcat(path, abs_path); printf("path:%s,", path);
here's are the contents of absolute path and root:
abs_path: /hello.php root: /home/jharvard/Dropbox/CS50/pset6/public
and here is the program output: