How can I get the path to a file relative to another file? I am making a C program that needs to read various files in GNU/Linux.