Determine the accessibility of a file.
#include <io.h> #include <unistd.h> // for amode bit values int access(const char *filename, int amode); int _waccess(const wchar_t *filename, int amode);
filename
amode
The access function shall check the file named by the filename argument for accessibility according to the bit pattern contained in amode.
The value of amode is either the bitwise-inclusive OR of the access permissions to be checked (R_OK, W_OK, X_OK) or the existence test (F_OK)
Note that the X_OK access permission is meaningless for INtime.
The _waccess function is the wide-character version of the access function.
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 6.1 | intime/rt/include/io.h | io.h | clib.lib |