I am in the directory /home/destination I need to go back to the /home directory. Any ideas on how to implement this using a C-program?
/home/destination
/home
A program can only change its own environment. Thus, the program can chdir but it will not change the current directory of the parent. That's why cd can't be implemented as an external command.
cd