diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 13:00:04 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 13:00:04 +0000 |
commit | 4aec03f2cbabc19cf31e7d6f9fdcd6c84cfa861e (patch) | |
tree | 06ba27421c30be1aa1f3c4e911e7a7c7d4ed28fc /src/htszlib.c | |
parent | 660b569b0980fc8f71b03ed666dd02eec8388b4c (diff) |
httrack 3.42.3
Diffstat (limited to 'src/htszlib.c')
-rw-r--r-- | src/htszlib.c | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/src/htszlib.c b/src/htszlib.c index 9227bbb..30d354d 100644 --- a/src/htszlib.c +++ b/src/htszlib.c @@ -140,9 +140,33 @@ int hts_extract_meta(const char* path) { } return 0; } - -#else - -#error HTS_USEZLIB not defined - + +const char* hts_get_zerror(int err) { + switch(err) { + case UNZ_OK: + return "no error"; + break; + case UNZ_END_OF_LIST_OF_FILE: + return "end of list of file"; + break; + case UNZ_ERRNO: + return (const char*) strerror(errno); + break; + case UNZ_PARAMERROR: + return "parameter error"; + break; + case UNZ_BADZIPFILE: + return "bad zip file"; + break; + case UNZ_INTERNALERROR: + return "internal error"; + break; + case UNZ_CRCERROR: + return "crc error"; + break; + default: + return "unknown error"; + break; + } +} #endif |