Due to high number of functions, the accessor functions can be found in
man pages grouped by the purpose.
Most of the functions set or read entries in an object.
Such functions have one of the following forms:
archive_entry_set_XXXX()
|
Stores the provided data in the object.
In particular, for strings, the pointer is stored,
not the referenced string.
|
archive_entry_copy_XXXX()
|
As above, except that the referenced data is copied
into the object.
|
archive_entry_XXXX()
|
Returns the specified data.
In the case of strings, a const-qualified pointer to
the string is returned.
|
String data can be set or accessed as wide character strings
or normal
char
strings.
The functions that use wide character strings are suffixed with
_w.
Note that these are different representations of the same data:
For example, if you store a narrow string and read the corresponding
wide string, the object will transparently convert formats
using the current locale.
Similarly, if you store a wide string and then store a
narrow string for the same data, the previously-set wide string will
be discarded in favor of the new data.