diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2020-08-20 21:34:34 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2020-08-20 21:34:34 +0100 |
commit | 2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168 (patch) | |
tree | bfe7ad4524a3ae1665e30c2ccb1ce838fbabf0d9 /pack.h | |
download | pack-2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168.tar.gz pack-2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168.tar.xz pack-2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168.zip |
init
Diffstat (limited to 'pack.h')
-rw-r--r-- | pack.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |