Test file writability

ss_file_iswritable is a function defined in ssfile.c.

Synopsis:

htri_t ss_file_iswritable(ss_file_t *file)

Formal Arguments:

  • file: A link to some File object

Description: Files can be open for read-only access or for read and write access. This function tests the writing capability of the file in question.

Return Value: Returns true (positive) if file was opened with the H5F_ACC_RDWR flag and false otherwise; returns negative on failure, including when file is not open.

Parallel Notes: Independent

See Also:

  • Files: Introduction for current chapter