returns the real file name
char realpath (const char file_name, char resolved_name);
resolves all links, symbolic links, and references to ``.'' and ``..'' in
and stores it in
realpath takes as input both relative and absolute path names.
It returns the ``resolved absolute'' name.
resolved_name must be big enough (MAXPATHLEN)
to contain the fully resolved path name.
If there is no error, realpath returns a pointer to the
Otherwise it returns a
pointer and places the name of the offending file in
The global variable
is set to indicate the error.
realpath operates on null-terminated strings.
One should have execute permission on all the directories
in the given and the resolved path.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004