XPRMpathcheck
XPRMpathcheck |
Purpose
Expand a path name and check whether it can be accessed.
Synopsis
int XPRMpathcheck(const char *path,char *fullpath,int maxlen,int acc);
Arguments
path
|
Path (or file name) to be processed
|
||||||
fullpath
|
Buffer to return the expanded path
|
||||||
maxlen
|
Size of
fullpath
|
||||||
acc
|
Operation to perform. Possible values:
|
Return value
0 if successful, 1 if access is denied and a negative value in case of error (
e.g. buffer too small).
Further information
1. This routine returns an absolute path to the file name it gets as input and optionally checks whether access is allowed according to the current restrictions.
2. The string
"tmp:" beginning a path name will be replaced by the path to the Mosel temporary directory.
Related topics