From 2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 20 Aug 2020 21:34:34 +0100 Subject: init --- pack.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pack.h (limited to 'pack.h') diff --git a/pack.h b/pack.h new file mode 100644 index 0000000..7a8fc69 --- /dev/null +++ b/pack.h @@ -0,0 +1,16 @@ +#ifndef PACK_H +#define PACK_H + +#include + +enum pack_status { + PACK_OK, + PACK_FMTINVAL, + PACK_TOOSMALL, +}; + +enum pack_status unpack(void *buf, size_t size, const char *fmt, ...); + +const char *pack_strerror(enum pack_status status); + +#endif // !PACK_H -- cgit v1.2.3-54-g00ecf