int GetFileWritability (const char pathname[], int *isWriteable);
Determines whether you have access (permissions) to write a file. The determination is made without regard to whether the file already exists.
| Input | ||
| Name | Type | Description |
| pathname | const char [] | The pathname of the file. If it is not an absolute pathname, the file is located relative to the current working directory. |
| Output | ||
| Name | Type | Description |
| isWriteable | integer * | If the function determines that the file is writeable, then it sets this parameter to 1. Otherwise, the function sets this parameter to 0. |
| Name | Type | Description | ||||
| status | integer | Indicates whether the function was able to determine the file writeability. If the function was successful, it returns 0. Otherwise, it returns a negative error code. The error codes that can occur and the header files in which they are defined are listed below:
|