I am writing client and server programs for a simple FTP.
I am allowed to use chdir, getcwd and getenv.
What would be a correct procedure to expand a user provided path correctly using these functions, assuming of course the user supplied path is stored in a c-string?
Thank you.