add libflate

This commit is contained in:
rsc 2003-11-23 18:19:18 +00:00
parent 8a708fb239
commit b6afd33e2f
13 changed files with 2558 additions and 0 deletions

23
src/libflate/flateerr.c Normal file
View 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";
}