Lines Matching refs:arg

80 typedef void FAST_FUNC (*converter)(const char *arg, void *result);
82 static int multiconvert(const char *arg, void *result, converter convert) in multiconvert() argument
84 if (*arg == '"' || *arg == '\'') { in multiconvert()
85 arg = utoa((unsigned char)arg[1]); in multiconvert()
88 convert(arg, result); in multiconvert()
90 bb_error_msg("invalid number '%s'", arg); in multiconvert()
96 static void FAST_FUNC conv_strtoull(const char *arg, void *result) in conv_strtoull() argument
102 if (arg[0] == '+') in conv_strtoull()
103 arg++; in conv_strtoull()
104 *(unsigned long long*)result = bb_strtoull(arg, NULL, 0); in conv_strtoull()
111 *(unsigned long long*)result = bb_strtoll(arg, NULL, 0); in conv_strtoull()
114 static void FAST_FUNC conv_strtoll(const char *arg, void *result) in conv_strtoll() argument
116 if (arg[0] == '+') in conv_strtoll()
117 arg++; in conv_strtoll()
118 *(long long*)result = bb_strtoll(arg, NULL, 0); in conv_strtoll()
120 static void FAST_FUNC conv_strtod(const char *arg, void *result) in conv_strtod() argument
126 *(double*)result = strtod(arg, &end); in conv_strtod()
134 static unsigned long long my_xstrtoull(const char *arg) in my_xstrtoull() argument
137 if (multiconvert(arg, &result, conv_strtoull)) in my_xstrtoull()
141 static long long my_xstrtoll(const char *arg) in my_xstrtoll() argument
144 if (multiconvert(arg, &result, conv_strtoll)) in my_xstrtoll()
148 static double my_xstrtod(const char *arg) in my_xstrtod() argument
151 multiconvert(arg, &result, conv_strtod); in my_xstrtod()