Home
last modified time | relevance | path

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

1234567

/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/elfutils/tests/
Ddwfl-report-elf-align.c52 char *endptr; in main() local
53 uintptr_t base = strtoull (argv[2], &endptr, 0); in main()
54 assert (endptr && !*endptr); in main()
59 uintptr_t funcaddr = strtoull (argv[3], &endptr, 0); in main()
60 assert (endptr && !*endptr); in main()
Ddwfl-report-offline-memory.c92 char *endptr; in main() local
94 strtoull (argv[2], &endptr, 0); in main()
95 assert (endptr && !*endptr); in main()
/third_party/mesa3d/src/gallium/frontends/dri/
Ddri_query_renderer.c32 char *endptr; in driQueryRendererIntegerCommon() local
35 v[0] = strtol(ver, &endptr, 10); in driQueryRendererIntegerCommon()
36 assert(endptr[0] == '.'); in driQueryRendererIntegerCommon()
37 if (endptr[0] != '.') in driQueryRendererIntegerCommon()
40 v[1] = strtol(endptr + 1, &endptr, 10); in driQueryRendererIntegerCommon()
41 assert(endptr[0] == '.'); in driQueryRendererIntegerCommon()
42 if (endptr[0] != '.') in driQueryRendererIntegerCommon()
45 v[2] = strtol(endptr + 1, &endptr, 10); in driQueryRendererIntegerCommon()
/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/libinput/src/
Dutil-strings.h146 char *endptr; in safe_atoi_base() local
152 v = strtol(str, &endptr, base); in safe_atoi_base()
155 if (str == endptr) in safe_atoi_base()
157 if (*str != '\0' && *endptr != '\0') in safe_atoi_base()
176 char *endptr; in safe_atou_base() local
182 v = strtoul(str, &endptr, base); in safe_atou_base()
185 if (str == endptr) in safe_atou_base()
187 if (*str != '\0' && *endptr != '\0') in safe_atou_base()
206 char *endptr; in safe_atod() local
237 v = strtod_l(str, &endptr, c_locale); in safe_atod()
[all …]
/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/openssl/test/
Dbio_prefix_text.c143 char *endptr; in setup() local
164 amount = strtoul(arg, &endptr, 10); in setup()
165 if (endptr[0] != '\0') { in setup()
191 idx = strtoul(arg, &endptr, 10); in setup()
192 if (endptr[0] != ':') { in setup()
202 indent = strtoul(colon, &endptr, 10); in setup()
203 if (endptr[0] != '\0') { in setup()
229 idx = strtoul(arg, &endptr, 10); in setup()
230 if (endptr[0] != ':') { in setup()
/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/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/curl/src/
Dtool_paramhlp.c135 char *endptr = NULL; in getnum() local
138 num = strtol(str, &endptr, base); in getnum()
141 if((endptr != str) && (*endptr == '\0')) { in getnum()
224 char *endptr; in str2double() local
227 num = strtod(str, &endptr); in str2double()
234 if((endptr != str) && (endptr == str + strlen(str))) { in str2double()
470 char *endptr; in str2offset() local
477 CURLofft offt = curlx_strtoofft(str, &endptr, 10, val); in str2offset()
485 *val = strtol(str, &endptr, 0); in str2offset()
489 if((endptr != str) && (endptr == str + strlen(str))) in str2offset()
/third_party/FreeBSD/lib/libc/stdlib/
Dstrtoul.c56 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoul_l() argument
124 if (endptr != NULL) in strtoul_l()
125 *endptr = (char *)(any ? s - 1 : nptr); in strtoul_l()
129 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoul() argument
131 return strtoul_l(nptr, endptr, base); in strtoul()
Dstrtoumax.c56 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoumax_l() argument
124 if (endptr != NULL) in strtoumax_l()
125 *endptr = (char *)(any ? s - 1 : nptr); in strtoumax_l()
129 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoumax() argument
131 return strtoumax_l(nptr, endptr, base); in strtoumax()
Dstrtoimax.c56 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoimax_l() argument
146 if (endptr != NULL) in strtoimax_l()
147 *endptr = (char *)(any ? s - 1 : nptr); in strtoimax_l()
151 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) in strtoimax() argument
153 return strtoimax_l(nptr, endptr, base); in strtoimax()
/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/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/json/include/nlohmann/detail/input/
Dlexer.hpp912 static void strtof(float& f, const char* str, char** endptr) noexcept in strtof() argument
914 f = std::strtof(str, endptr); in strtof()
918 static void strtof(double& f, const char* str, char** endptr) noexcept in strtof() argument
920 f = std::strtod(str, endptr); in strtof()
924 static void strtof(long double& f, const char* str, char** endptr) noexcept in strtof() argument
926 f = std::strtold(str, endptr); in strtof()
1247 char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg) in scan_number() local
1253 const auto x = std::strtoull(token_buffer.data(), &endptr, 10); in scan_number()
1256 JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); in scan_number()
1269 const auto x = std::strtoll(token_buffer.data(), &endptr, 10); in scan_number()
[all …]
/third_party/curl/lib/
Dstrtoofft.c79 static curl_off_t strtooff(const char *nptr, char **endptr, int base) in strtooff() argument
104 if(endptr) { in strtooff()
105 *endptr = end; in strtooff()
162 if(endptr) in strtooff()
163 *endptr = end; in strtooff()
/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()
1458 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()
332 if (ptr >= endptr) return TRUE; in PRIV()
338 (void)endptr; in PRIV()
/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/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/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/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/protobuf/src/google/protobuf/stubs/
Dstrutil.h352 PROTOBUF_EXPORT int32 strto32_adaptor(const char* nptr, char** endptr,
354 PROTOBUF_EXPORT uint32 strtou32_adaptor(const char* nptr, char** endptr,
357 inline int32 strto32(const char *nptr, char **endptr, int base) { in strto32() argument
359 return strtol(nptr, endptr, base); in strto32()
361 return strto32_adaptor(nptr, endptr, base); in strto32()
364 inline uint32 strtou32(const char *nptr, char **endptr, int base) { in strtou32() argument
366 return strtoul(nptr, endptr, base); in strtou32()
368 return strtou32_adaptor(nptr, endptr, base); in strtou32()
373 inline int64 strto64(const char *nptr, char **endptr, int base) { in strto64() argument
376 return strtoll(nptr, endptr, base); in strto64()
[all …]

1234567