Lines Matching refs:arg
106 typedef void (*converter)(const char *arg, void *result);
290 static int multiconvert(const char *arg, void *result, converter convert) in multiconvert() argument
292 if (*arg == '"' || *arg == '\'') in multiconvert()
293 sprintf((char *)arg + strlen(arg), "%u", (unsigned char)arg[1]); in multiconvert()
295 convert(arg, result); in multiconvert()
307 static void conv_strtoull(const char *arg, void *result) in conv_strtoull() argument
314 if (arg[0] == '-') { in conv_strtoull()
315 *(unsigned long long *)result = simple_strtoll(arg, NULL, 16); in conv_strtoull()
322 if (arg[0] == '+') in conv_strtoull()
323 arg++; in conv_strtoull()
324 *(unsigned long long *)result = simple_strtoull(arg, NULL, 16); in conv_strtoull()
327 static void conv_strtoll(const char *arg, void *result) in conv_strtoll() argument
329 if (arg[0] == '+') in conv_strtoll()
330 arg++; in conv_strtoll()
331 *(long long *)result = simple_strtoll(arg, NULL, 16); in conv_strtoll()
335 static unsigned long long my_xstrtoull(const char *arg) in my_xstrtoull() argument
339 if (multiconvert(arg, &result, conv_strtoull)) in my_xstrtoull()
344 static long long my_xstrtoll(const char *arg) in my_xstrtoll() argument
348 if (multiconvert(arg, &result, conv_strtoll)) in my_xstrtoll()