projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new restartable integer parsing framework.
[musl]
/
src
/
internal
/
intparse.h
diff --git a/src/internal/intparse.h
b/src/internal/intparse.h
new file mode 100644
(file)
index 0000000..
78e800d
--- /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);