Copyright (c) 2003-2011 Tim Kientzle
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or ...
(The comments found at the beginning of the groff file "man3/archive_write_data.3".)
- functions for creating archives
Streaming Archive Library (libarchive, -larchive)
Fn archive_write_data struct archive * const void * size_t
Write data corresponding to the header just written.
This function returns the number of bytes actually written, or
a negative error code on error.
Detailed error codes and textual descriptions are available from the
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
Clients should treat any value less than zero as an error
and consider any non-negative value as success.