summaryrefslogtreecommitdiff
path: root/src/internal/intparse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/intparse.h')
-rw-r--r--src/internal/intparse.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/internal/intparse.h b/src/internal/intparse.h
new file mode 100644
index 00000000..78e800d1
--- /dev/null
+++ b/src/internal/intparse.h
@@ -0,0 +1,11 @@
+#include <stdint.h>
+#include <stddef.h>
+
+struct intparse {
+ uintmax_t val;
+ unsigned small;
+ size_t cnt;
+ char neg, base, state, err;
+};
+
+int __intparse(struct intparse *, const void *, size_t);