in manual, in description of get_current_dir_name :
"Only difference is that value of `PWD' variable
is returned if this value is correct."
There is no further mention of this variable,
so i presume you mean shell-variable ?
It might be nice to explicitly state that,
or perhaps add a link to getenv(), if that is used to find value of PWD.