add libflate
This commit is contained in:
parent
8a708fb239
commit
b6afd33e2f
13 changed files with 2558 additions and 0 deletions
23
src/libflate/flateerr.c
Normal file
23
src/libflate/flateerr.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <flate.h>
|
||||
|
||||
char *
|
||||
flateerr(int err)
|
||||
{
|
||||
switch(err){
|
||||
case FlateOk:
|
||||
return "no error";
|
||||
case FlateNoMem:
|
||||
return "out of memory";
|
||||
case FlateInputFail:
|
||||
return "input error";
|
||||
case FlateOutputFail:
|
||||
return "output error";
|
||||
case FlateCorrupted:
|
||||
return "corrupted data";
|
||||
case FlateInternal:
|
||||
return "internal error";
|
||||
}
|
||||
return "unknown error";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue