aboutsummaryrefslogtreecommitdiffstats
path: root/pack.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-08-20 21:34:34 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-08-20 21:34:34 +0100
commit2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168 (patch)
treebfe7ad4524a3ae1665e30c2ccb1ce838fbabf0d9 /pack.h
downloadpack-2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168.tar.gz
pack-2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168.tar.xz
pack-2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168.zip
init
Diffstat (limited to 'pack.h')
-rw-r--r--pack.h16
1 files changed, 16 insertions, 0 deletions
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 <stddef.h>
+
+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