libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ afc_file_write()

afc_error_t afc_file_write ( afc_client_t  client,
uint64_t  handle,
const char *  data,
uint32_t  length,
uint32_t *  bytes_written 
)

Writes a given number of bytes to a file.

Parameters
clientThe client to use to write to the file.
handleFile handle of previously opened file.
dataThe data to write to the file.
lengthHow much data to write.
bytes_writtenThe number of bytes actually written to the file.
Returns
AFC_E_SUCCESS on success or an AFC_E_* error value.