svn_io_file_create

Function svn_io_file_create 

Source
pub unsafe extern "C" fn svn_io_file_create(
    file: *const c_char,
    contents: *const c_char,
    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 the null-terminated string @a contents.

@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 contents is @c NULL, create an empty file.

Use @a pool for memory allocations.