svn_io_file_create_bytes

Function svn_io_file_create_bytes 

Source
pub unsafe extern "C" fn svn_io_file_create_bytes(
    file: *const c_char,
    contents: *const c_void,
    length: apr_size_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Create a file at utf8-encoded path @a file with the contents given by @a contents of @a length bytes.

@a file must not already exist. If an error occurs while writing or closing the file, attempt to delete the file before returning the error.

Write the data in ‘binary’ mode (#APR_FOPEN_BINARY). If @a length is zero, create an empty file; in this case @a contents may be @c NULL.

Use @a scratch_pool for temporary allocations.

@since New in 1.9.