Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: stat.h

realpath()

IMPORT_C char *realpath(const char *_path, char *resolved);

Description

Takes a specified path name, pathname and resolves all symbolic links, extra slashes (/), and references to /./ and /../. The resulting absolute path name is placed in the memory location pointed to by the resolved_path argument.

Parameters

const char *_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 realpath().

char *resolved

Points to the location where the canonical version of pathname is to be placed.

Return value

char *

resolved_path. When an error occurs,returns a null pointer, setsresolved_path to the path name that caused the error.