char * realpath(const char *pathname, char *resolved_path);
Points to the path name that you want resolved to an absolute form. This may be either a relative or absolute path name. All but the final component of this path name must exist when you call
Points to the location where the canonical version of pathname is to be placed. If this argument is NULL, the return value is
malloc()ed. When resolved_path is non-NULL, it must point to a buffer capable of storing at least PATH_MAX characters (that is, large enough to store a fully resolved path name).
A parent directory cannot be read to get its name.
Read or search permission was denied for a component of the path name.
pathname points outside the allocated address space of the process.
A signal interrupted the call.
The pathname parameter contains an invalid character.
An I/O error occurred while reading from or writing to the file system.
readlink()s exceeds MAXSYMLINKS which is defined as 8 in sys/param.h.
The pathname parameter exceeds PATH_MAX in length or a pathname component is longer than NAME_MAX while _POSIX_NO_TRUNC is in effect.
The pathname parameter is an empty string.
A component of the pathname parameter is not a directory.
Insufficient memory exists to allocate a buffer to hold the path name.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.