aboutsummaryrefslogtreecommitdiffstats
path: root/pack.h
diff options
context:
space:
mode:
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