Lines Matching refs:endptr
103 static inline bool strtol_err_util(char *endptr, long *val) in strtol_err_util() argument
105 if (*endptr != '\0' || *val < 0 || in strtol_err_util()
116 char *endptr; in parse_opts() local
130 temp = strtol(optarg, &endptr, 10); in parse_opts()
131 if (strtol_err_util(endptr, &temp)) { in parse_opts()
140 temp = strtol(optarg, &endptr, 10); in parse_opts()
141 if (strtol_err_util(endptr, &temp) || in parse_opts()
157 temp = strtol(optarg, &endptr, 16); in parse_opts()
158 if (strtol_err_util(endptr, &temp) || in parse_opts()
169 temp = strtol(optarg, &endptr, 16); in parse_opts()
170 if (strtol_err_util(endptr, &temp) || temp > 0xff) { in parse_opts()