Lines Matching refs:endptr
124 char *endptr = NULL; in cmd_read_option_value() local
130 endptr = (char *)str + 5; in cmd_read_option_value()
133 endptr = (char *)str + 1; in cmd_read_option_value()
136 endptr = (char *)str + 4; in cmd_read_option_value()
139 endptr = (char *)str + 1; in cmd_read_option_value()
146 endptr = (char *)str + strlen(str); in cmd_read_option_value()
149 *(uint32_t *)dest = strtoul(str, &endptr, 0); in cmd_read_option_value()
152 *(uint64_t *)dest = strtoull(str, &endptr, 0); in cmd_read_option_value()
155 *(int32_t *)dest = strtol(str, &endptr, 0); in cmd_read_option_value()
158 *(int64_t *)dest = strtoll(str, &endptr, 0); in cmd_read_option_value()
161 *(double *)dest = strtod(str, &endptr); in cmd_read_option_value()
169 if (!error && endptr && *endptr != 0) { in cmd_read_option_value()