archive_write_data(3) functions for creating archives

LIBRARY

Streaming Archive Library (libarchive, -larchive)

SYNOPSIS

In archive.h Ft la_ssize_t Fn archive_write_data struct archive * const void * size_t

DESCRIPTION

Write data corresponding to the header just written.

RETURN VALUES

This function returns the number of bytes actually written, or a negative error code on error.

ERRORS

Detailed error codes and textual descriptions are available from the Fn archive_errno and Fn archive_error_string functions.

BUGS

In libarchive 3.x, this function sometimes returns zero on success instead of returning the number of bytes written. Specifically, this occurs when writing to an Vt archive_write_disk handle. Clients should treat any value less than zero as an error and consider any non-negative value as success.