[MINOR] standard: add read_uint() to parse a delimited unsigned integer
This function parses an integer and returns it along with the pointer to the
next char not part of the number.
diff --git a/src/standard.c b/src/standard.c
index 8aaa594..017f87f 100644
--- a/src/standard.c
+++ b/src/standard.c
@@ -535,6 +535,11 @@
return __strl2uic(s, len);
}
+unsigned int read_uint(const char **s, const char *end)
+{
+ return __read_uint(s, end);
+}
+
/* This one is 7 times faster than strtol() on athlon with checks.
* It returns the value of the number composed of all valid digits read,
* and can process negative numbers too.