I have been given an assignment where I have to build a custom terminal using ncurses and C, and implementation of several commands is requested.
One of the commands happens to be chdir, which is meant to change the working directory, however I could not find anything more relevant in C when it comes to changing the working directory besides the already built in chdir() function in C.
It is requested I do not use the available chdir() function but rather build my own. I am not even sure if this is possible, or if it is a mistake, shouldn't directory handling be implementation dependent?
Thank you for your time and help.