tar_archive_file_add_header

Function tar_archive_file_add_header 

Source
pub unsafe extern "C" fn tar_archive_file_add_header(
    archive: *mut TarArchive,
    path: *const c_char,
    data_len: i32,
) -> bool
Expand description

Add tar archive file header

§Arguments

  • archive - Tar archive object. Must be opened in write mode
  • path (direction in) - Path to the file
  • data_len - Size of the file

§Returns

true if successful