Returns the error message in ErrorStr for the last error which occurred on the given compressed file. errnum is set to XOnZip error number.
If an error occurred in the file system and not in the compression library, errnum is set to Z_ERRNO.
xzerror2 copies not more than MaxLen characters (inclusive trailing 0) into ErrorStr.
The function result is 1 if there was enough room within ErrorStr otherwise 0.
file/in "gz" filehandle from xzopen. |
Result |
errnum |
ErrorStr |
file/out |