ash: deal with some TODOs (mostly trivial)
[oweals/busybox.git] / libbb / xatonum_template.c
index 2360ae88a345998d4a6f90c2c603d7babebfed5e..339a7d35fdcd845ba6524fdefc1ad0d568ac6288 100644 (file)
@@ -1,3 +1,7 @@
+/*
+ *
+ * Licensed under GPLv2, see file LICENSE in this tarball for details.
+ */
 /*
 You need to define the following (example):
 
@@ -153,6 +157,11 @@ type FAST_FUNC xstrto(_range)(const char *numstr, int base, type lower, type upp
        return xstrto(_range_sfx)(numstr, base, lower, upper, NULL);
 }
 
+type FAST_FUNC xstrto()(const char *numstr, int base)
+{
+       return xstrto(_range_sfx)(numstr, base, XSTR_TYPE_MIN, XSTR_TYPE_MAX, NULL);
+}
+
 type FAST_FUNC xato(_range_sfx)(const char *numstr,
                type lower,
                type upper,