|
The realpath() function derives, from the pathname pointed to by file_name, an absolute pathname that names the same file, whose resolution does not involve
".", "..", or symbolic links. The generated pathname, using PATH_MAX bytes, is stored in the buffer pointed to by resolved_name.
The realpath() function can handle both relative and absolute path names. For absolute path names and the relative names whose resolved name cannot be expressed relatively (for
example, ../../reldir), it returns the resolved absolute name. For the other relative path names, it returns the resolved
relative name.
|