Home
last modified time | relevance | path

Searched refs:endptr (Results 1 – 25 of 180) sorted by relevance

12345678

/third_party/libnl/src/lib/
Droute.c115 char *arg, *endptr; in nl_cli_route_parse_metric() local
128 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_metric()
129 if (endptr == arg) in nl_cli_route_parse_metric()
158 char *arg, *endptr; in nl_cli_route_parse_nexthop() local
199 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_nexthop()
200 if (endptr == arg) in nl_cli_route_parse_nexthop()
215 char *endptr; in nl_cli_route_parse_table() local
218 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_table()
219 if (endptr == arg) { in nl_cli_route_parse_table()
233 char *endptr; in nl_cli_route_parse_prio() local
[all …]
/third_party/libinput/src/
Dutil-strings.h117 char *endptr; in safe_atoi_base() local
123 v = strtol(str, &endptr, base); in safe_atoi_base()
126 if (str == endptr) in safe_atoi_base()
128 if (*str != '\0' && *endptr != '\0') in safe_atoi_base()
147 char *endptr; in safe_atou_base() local
153 v = strtoul(str, &endptr, base); in safe_atou_base()
156 if (str == endptr) in safe_atou_base()
158 if (*str != '\0' && *endptr != '\0') in safe_atou_base()
177 char *endptr; in safe_atod() local
208 v = strtod_l(str, &endptr, c_locale); in safe_atod()
[all …]
/third_party/mesa3d/src/freedreno/afuc/
Dutil.c57 char *endptr = NULL; in reg() local
58 val = strtol(name, &endptr, 0); in reg()
59 if (endptr && *endptr) { in reg()
144 char *endptr = NULL; in afuc_gpu_reg() local
145 val = strtol(name, &endptr, 0); in afuc_gpu_reg()
146 if (endptr && *endptr) { in afuc_gpu_reg()
201 char *endptr = NULL; in afuc_gpr_reg() local
202 unsigned val = strtol(name, &endptr, 16); in afuc_gpr_reg()
203 if (endptr && *endptr) { in afuc_gpr_reg()
/third_party/libcoap/tests/
Dtest_tls.c72 char* endptr; in t_tls2() local
74 p1 = strtol(vers, &endptr, 10); in t_tls2()
75 if (*endptr == '.') { in t_tls2()
76 p2 = strtol(endptr+1, &endptr, 10); in t_tls2()
77 if (*endptr == '.') { in t_tls2()
78 p3 = strtol(endptr+1, &endptr, 10); in t_tls2()
/third_party/e2fsprogs/resize/
Donline.c28 char *endptr; in parse_version_number() local
33 major = strtol(cp, &endptr, 10); in parse_version_number()
34 if (cp == endptr || *endptr != '.') in parse_version_number()
36 cp = endptr + 1; in parse_version_number()
37 minor = strtol(cp, &endptr, 10); in parse_version_number()
38 if (cp == endptr || *endptr != '.') in parse_version_number()
40 cp = endptr + 1; in parse_version_number()
41 rev = strtol(cp, &endptr, 10); in parse_version_number()
42 if (cp == endptr) in parse_version_number()
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpopusdepay.c116 gchar *endptr; in gst_rtp_opus_depay_setcaps() local
132 channels = g_ascii_strtoull (encoding_params, &endptr, 10); in gst_rtp_opus_depay_setcaps()
133 if (*endptr != '\0' || channels > 255) { in gst_rtp_opus_depay_setcaps()
141 stream_count = g_ascii_strtoull (num_streams, &endptr, 10); in gst_rtp_opus_depay_setcaps()
142 if (*endptr != '\0' || stream_count > channels) { in gst_rtp_opus_depay_setcaps()
151 coupled_count = g_ascii_strtoull (coupled_streams, &endptr, 10); in gst_rtp_opus_depay_setcaps()
152 if (*endptr != '\0' || coupled_count > stream_count) { in gst_rtp_opus_depay_setcaps()
173 gint channel = g_ascii_strtoull (*ptr, &endptr, 10); in gst_rtp_opus_depay_setcaps()
174 if (*endptr != '\0' || channel > channels) { in gst_rtp_opus_depay_setcaps()
/third_party/skia/third_party/musl_compat/
Dlocale.c12 long long strtoll_l(const char *nptr, char **endptr, int base, in strtoll_l() argument
14 return strtoll(nptr, endptr, base); in strtoll_l()
17 long long strtoull_l(const char *nptr, char **endptr, int base, in strtoull_l() argument
19 return strtoull(nptr, endptr, base); in strtoull_l()
/third_party/curl/src/
Dtool_paramhlp.c138 char *endptr = NULL; in getnum() local
141 num = strtol(str, &endptr, base); in getnum()
144 if((endptr != str) && (endptr == str + strlen(str))) { in getnum()
227 char *endptr; in str2double() local
230 num = strtod(str, &endptr); in str2double()
237 if((endptr != str) && (endptr == str + strlen(str))) { in str2double()
411 char *endptr; in str2offset() local
418 CURLofft offt = curlx_strtoofft(str, &endptr, 0, val); in str2offset()
426 *val = strtol(str, &endptr, 0); in str2offset()
430 if((endptr != str) && (endptr == str + strlen(str))) in str2offset()
/third_party/libnl/lib/cli/qdisc/
Dhfsc.c85 char *p, *endptr; in hfsc_get_sc() local
101 m1 = strtoul(p, &endptr, 10); in hfsc_get_sc()
102 if (endptr == p) in hfsc_get_sc()
117 d = strtoul(p, &endptr, 10); in hfsc_get_sc()
118 if (endptr == p) in hfsc_get_sc()
128 m2 = strtoul(p, &endptr, 10); in hfsc_get_sc()
129 if (endptr == p) in hfsc_get_sc()
/third_party/python/Python/
Dpystrtod.c29 _Py_parse_inf_or_nan(const char *p, char **endptr) in _Py_parse_inf_or_nan() argument
57 *endptr = (char *)s; in _Py_parse_inf_or_nan()
64 _Py_parse_inf_or_nan(const char *p, char **endptr) in _Py_parse_inf_or_nan() argument
94 *endptr = (char *)s; in _Py_parse_inf_or_nan()
132 _PyOS_ascii_strtod(const char *nptr, char **endptr) in _PyOS_ascii_strtod() argument
143 result = _Py_dg_strtod(nptr, endptr); in _PyOS_ascii_strtod()
146 if (*endptr == nptr) in _PyOS_ascii_strtod()
148 result = _Py_parse_inf_or_nan(nptr, endptr); in _PyOS_ascii_strtod()
165 _PyOS_ascii_strtod(const char *nptr, char **endptr) in _PyOS_ascii_strtod() argument
190 val = _Py_parse_inf_or_nan(nptr, endptr); in _PyOS_ascii_strtod()
[all …]
/third_party/eudev/src/udev/
Dudev-builtin-keyboard.c74 char *endptr; in map_keycode() local
84 keycode_num = strtoul(keycode, &endptr, 0); in map_keycode()
85 if (endptr[0] !='\0') { in map_keycode()
203 char *endptr; in builtin_keyboard() local
211 scancode = strtoul(key + 13, &endptr, 16); in builtin_keyboard()
212 if (endptr[0] != '\0') { in builtin_keyboard()
242 evcode = strtoul(key + 10, &endptr, 16); in builtin_keyboard()
243 if (endptr[0] != '\0') { in builtin_keyboard()
/third_party/libdrm/amdgpu/
Damdgpu_asic_id.c45 char *endptr; in parse_one_line() local
61 did = strtol(s_did, &endptr, 16); in parse_one_line()
62 if (*endptr) in parse_one_line()
75 rid = strtol(s_rid, &endptr, 16); in parse_one_line()
76 if (*endptr) in parse_one_line()
/third_party/ltp/tools/apicmds/
Dltpapicmd.c206 char *endptr; in apicmd_fs_has_free() local
207 unsigned int required_kib = strtoull(argv[1], &endptr, 0); in apicmd_fs_has_free()
213 if (*endptr != '\0') { in apicmd_fs_has_free()
214 if (!strcasecmp(endptr, "kB")) { in apicmd_fs_has_free()
216 } else if (!strcasecmp(endptr, "MB")) { in apicmd_fs_has_free()
218 } else if (!strcasecmp(endptr, "GB")) { in apicmd_fs_has_free()
/third_party/pcre2/pcre2/src/
Dpcre2grep.c1327 char *endptr = option_data; in decode_number() local
1328 while (*endptr != 0 && isspace((unsigned char)(*endptr))) endptr++; in decode_number()
1329 while (isdigit((unsigned char)(*endptr))) in decode_number()
1330 n = n * 10 + (int)(*endptr++ - '0'); in decode_number()
1331 if (toupper(*endptr) == 'K') in decode_number()
1334 endptr++; in decode_number()
1336 else if (toupper(*endptr) == 'M') in decode_number()
1339 endptr++; in decode_number()
1342 if (*endptr != 0) /* Error */ in decode_number()
1453 end_of_line(char *p, char *endptr, int *lenptr) in end_of_line() argument
[all …]
Dpcre2_script_run.c85 PRIV(script_run)(PCRE2_SPTR ptr, PCRE2_SPTR endptr, BOOL utf) in PRIV()
100 if (ptr >= endptr) return TRUE; in PRIV()
102 if (ptr >= endptr) return TRUE; in PRIV()
429 if (ptr >= endptr) return TRUE; in PRIV()
435 (void)endptr; in PRIV()
/third_party/mesa3d/src/mesa/drivers/dri/common/
Dutils.c570 char *endptr; in driQueryRendererIntegerCommon() local
573 v[0] = strtol(ver, &endptr, 10); in driQueryRendererIntegerCommon()
574 assert(endptr[0] == '.'); in driQueryRendererIntegerCommon()
575 if (endptr[0] != '.') in driQueryRendererIntegerCommon()
578 v[1] = strtol(endptr + 1, &endptr, 10); in driQueryRendererIntegerCommon()
579 assert(endptr[0] == '.'); in driQueryRendererIntegerCommon()
580 if (endptr[0] != '.') in driQueryRendererIntegerCommon()
583 v[2] = strtol(endptr + 1, &endptr, 10); in driQueryRendererIntegerCommon()
/third_party/json/include/nlohmann/detail/input/
Dlexer.hpp904 static void strtof(float& f, const char* str, char** endptr) noexcept in strtof() argument
906 f = std::strtof(str, endptr); in strtof()
910 static void strtof(double& f, const char* str, char** endptr) noexcept in strtof() argument
912 f = std::strtod(str, endptr); in strtof()
916 static void strtof(long double& f, const char* str, char** endptr) noexcept in strtof() argument
918 f = std::strtold(str, endptr); in strtof()
1239 char* endptr = nullptr; in scan_number() local
1245 const auto x = std::strtoull(token_buffer.data(), &endptr, 10); in scan_number()
1248 JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); in scan_number()
1261 const auto x = std::strtoll(token_buffer.data(), &endptr, 10); in scan_number()
[all …]
/third_party/curl/lib/
Dstrtoofft.c77 static curl_off_t strtooff(const char *nptr, char **endptr, int base) in strtooff() argument
102 if(endptr) { in strtooff()
103 *endptr = end; in strtooff()
160 if(endptr) in strtooff()
161 *endptr = end; in strtooff()
/third_party/ltp/lib/
Dself_exec.c79 char *endptr; in maybe_run_child() local
107 i = strtol(tok, &endptr, 10); in maybe_run_child()
108 if (*endptr != '\0') { in maybe_run_child()
117 i = strtol(tok, &endptr, 10); in maybe_run_child()
118 if (*endptr != '\0') { in maybe_run_child()
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/
Dcheck.c131 char *endptr = NULL; in tcase_create() local
132 double tmp = strtod (env, &endptr); in tcase_create()
134 if (tmp >= 0 && endptr != env && (*endptr) == '\0') { in tcase_create()
141 char *endptr = NULL; in tcase_create() local
142 double tmp = strtod (env, &endptr); in tcase_create()
144 if (tmp >= 0 && endptr != env && (*endptr) == '\0') { in tcase_create()
320 char *endptr = NULL; in tcase_set_timeout() local
321 double tmp = strtod (env, &endptr); in tcase_set_timeout()
323 if (tmp >= 0 && endptr != env && (*endptr) == '\0') { in tcase_set_timeout()
/third_party/selinux/secilc/
Dsecilc.c161 char *endptr = NULL; in main() local
163 policyvers = strtol(optarg, &endptr, 10); in main()
164 if (errno != 0 || endptr == optarg || *endptr != '\0') { in main()
213 char *endptr = NULL; in main() local
215 attrs_expand_size = strtol(optarg, &endptr, 10); in main()
216 if (errno != 0 || endptr == optarg || *endptr != '\0') { in main()
/third_party/flutter/skia/third_party/externals/sdl/src/power/linux/
DSDL_syspower.c158 char *endptr = NULL; in check_proc_acpi_battery() local
159 const int cvt = (int) strtol(val, &endptr, 10); in check_proc_acpi_battery()
160 if (*endptr == ' ') { in check_proc_acpi_battery()
169 char *endptr = NULL; in check_proc_acpi_battery() local
170 const int cvt = (int) strtol(val, &endptr, 10); in check_proc_acpi_battery()
171 if (*endptr == ' ') { in check_proc_acpi_battery()
314 char *endptr = NULL; in int_string() local
315 *val = (int) strtol(str, &endptr, 0); in int_string()
316 return ((*str != '\0') && (*endptr == '\0')); in int_string()
/third_party/glib/glib/
Dgvarianttype.c204 const gchar **endptr, in variant_type_string_scan_internal() argument
263 if (endptr != NULL) in variant_type_string_scan_internal()
264 *endptr = string; in variant_type_string_scan_internal()
298 const gchar **endptr) in g_variant_type_string_scan() argument
300 return variant_type_string_scan_internal (string, limit, endptr, NULL, in g_variant_type_string_scan()
320 const gchar *endptr; in g_variant_type_string_get_depth_() local
325 if (!variant_type_string_scan_internal (type_string, NULL, &endptr, &depth, in g_variant_type_string_get_depth_()
327 *endptr != '\0') in g_variant_type_string_get_depth_()
348 const gchar *endptr; in g_variant_type_string_is_valid() local
352 if (!g_variant_type_string_scan (type_string, NULL, &endptr)) in g_variant_type_string_is_valid()
[all …]
/third_party/curl/tests/libtest/
Dfirst.c107 char *endptr; in memory_tracking_init() local
108 long num = strtol(env, &endptr, 10); in memory_tracking_init()
109 if((endptr != env) && (endptr == env + strlen(env)) && (num > 0)) in memory_tracking_init()
/third_party/openssl/crypto/x509v3/
Dv3_tlsf.c91 char *extval, *endptr; in v2i_TLS_FEATURE() local
116 tlsextid = strtol(extval, &endptr, 10); in v2i_TLS_FEATURE()
117 if (((*endptr) != '\0') || (extval == endptr) || (tlsextid < 0) || in v2i_TLS_FEATURE()

12345678