From 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 21:39:35 +0000 Subject: 20060303 --- os/boot/libflate/flateerr.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 os/boot/libflate/flateerr.c (limited to 'os/boot/libflate/flateerr.c') diff --git a/os/boot/libflate/flateerr.c b/os/boot/libflate/flateerr.c new file mode 100644 index 00000000..76763fb4 --- /dev/null +++ b/os/boot/libflate/flateerr.c @@ -0,0 +1,22 @@ +#include "lib9.h" +#include + +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"; +} -- cgit v1.2.3