Syntax | #include <stdlib.h> char *realpath (const char *file_name, char *resolved_name); | |
Description | From the pathname specified in file_name, Both relative and absolute pathnames can be processed. With absolute pathnames and relative pathnames whose resolved name cannot be printed out relatively (e.g. | |
Return val. | Pointer to resolved_name | |
if successful. | ||
| Null pointer | otherwise. |
Errors |
| |
|
| Read or search permission is denied for a component of file_name. |
|
| The file_name or resolved_name argument is a null pointer. |
|
| An I/O error occurred during reading from the file system. |
|
| |
The length of the file_name argument exceeds In resolving a symbolic link, a interim result was produced whose length exceeds | ||
|
| A component of the path prefix does not exist or file_name is an empty string. |
|
| A component of the path prefix is not a directory. |
|
| There is no longer enough memory available. |
Notes |
You should have execution permission for all directories in the given and resolved path. In certain circumstances | |
See also |
|