Initializing help system before first use

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:
XPRM_RCHK_READ 
Check whether path or file can be read
XPRM_RCHK_WRITE 
Check whether path or file can be written
XPRM_RCHK_NOCHK 
Only expand the path without testing access
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

© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.