+bool test_strtoumax(uintmax_t *out, const char *s, uintmax_t limit);
+
+static inline bool test_strtoul(unsigned long *val, const char *str)
+{
+ uintmax_t v;
+ bool rc;
+
+ rc = test_strtoumax(&v, str, (unsigned long)-1);
+ *val = v;
+ return rc;
+}