I`m implementing pwd builtin in mini shell.
How could I get relative path without using environment variable "PWD"
(getenv("PWD"))
Example:
CWD = /tmp
getcwd("/tmp", buff, size)
returns absolute location =>
/private/tmp.
How can I get "/tmp"
in order to print in?