1 ARCHIVE_WRITE_DATA(3) manual page
3 '''archive_write_data'''
4 - functions for creating archives
6 Streaming Archive Library (libarchive, -larchive)
8 '''<nowiki>#include <archive.h></nowiki>'''
12 '''archive_write_data'''(''struct archive *'', ''const void *'', ''size_t'');
14 Write data corresponding to the header just written.
16 This function returns the number of bytes actually written, or
17 a negative error code on error.
19 Detailed error codes and textual descriptions are available from the
22 '''archive_error_string'''()
25 In libarchive 3.x, this function sometimes returns
26 zero on success instead of returning the number of bytes written.
27 Specifically, this occurs when writing to an
28 ''archive_write_disk''
30 Clients should treat any value less than zero as an error
31 and consider any non-negative value as success.
34 [[ManPageibarchive3]],
35 [[ManPagerchiveriteinishntry3]],
36 [[ManPagerchiveriteetptions3]],