The
realpath() function resolves all symbolic links, extra “/” characters and references to
/./ and
/../ in
pathname, and copies the resulting absolute pathname into the memory referenced by
resolvedname. The
resolvedname argument
must refer to a buffer capable of storing at least
MAXPATHLEN characters.
The
realpath() function will resolve both absolute and relative paths and return the absolute pathname corresponding to
pathname.