ref: 4f5465e4779e30fa99e1e4856f9d81524e02a8df
dir: /sys/src/libflate/flateerr.c/
#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";
}