Home
last modified time | relevance | path

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

12345678

/external/compiler-rt/test/asan/TestCases/
Dstrtoll_strict.c33 void test1(char *array, char *endptr) { in test1() argument
35 long long r = strtoll(array, &endptr, 3); in test1()
36 assert(array + 2 == endptr); in test1()
40 void test2(char *array, char *endptr) { in test2() argument
43 long long r = strtoll(array, &endptr, 35); in test2()
44 assert(array + 2 == endptr); in test2()
48 void test3(char *array, char *endptr) { in test3() argument
57 void test4(char *array, char *endptr) { in test4() argument
63 void test5(char *array, char *endptr) { in test5() argument
72 void test6(char *array, char *endptr) { in test6() argument
[all …]
Dstrtol_strict.c31 void test1(char *array, char *endptr) { in test1() argument
33 long r = strtol(array, &endptr, 3); in test1()
34 assert(array + 2 == endptr); in test1()
38 void test2(char *array, char *endptr) { in test2() argument
41 long r = strtol(array, &endptr, 35); in test2()
42 assert(array + 2 == endptr); in test2()
46 void test3(char *array, char *endptr) { in test3() argument
64 void test4(char *array, char *endptr) { in test4() argument
79 void test5(char *array, char *endptr) { in test5() argument
88 void test6(char *array, char *endptr) { in test6() argument
[all …]
/external/libcxx/include/support/xlocale/
D__strtonum_fallback.h24 char **endptr, locale_t) { in strtof_l() argument
25 return ::strtof(nptr, endptr); in strtof_l()
29 char **endptr, locale_t) { in strtod_l() argument
30 return ::strtod(nptr, endptr); in strtod_l()
34 char **endptr, locale_t) { in strtold_l() argument
35 return ::strtold(nptr, endptr); in strtold_l()
39 strtoll_l(const char *nptr, char **endptr, int base, locale_t) { in strtoll_l() argument
40 return ::strtoll(nptr, endptr, base); in strtoll_l()
44 strtoull_l(const char *nptr, char **endptr, int base, locale_t) { in strtoull_l() argument
45 return ::strtoull(nptr, endptr, base); in strtoull_l()
[all …]
/external/libaom/libaom/common/
Dargs.c183 char *endptr; in arg_parse_uint() local
184 const unsigned long rawval = strtoul(arg->val, &endptr, 10); // NOLINT in arg_parse_uint()
186 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_uint()
193 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_uint()
198 char *endptr; in arg_parse_int() local
199 const long rawval = strtol(arg->val, &endptr, 10); // NOLINT in arg_parse_int()
201 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_int()
208 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_int()
218 char *endptr; in arg_parse_rational() local
222 rawval = strtol(arg->val, &endptr, 10); in arg_parse_rational()
[all …]
/external/libcxx/include/support/musl/
Dxlocale.h28 static inline long long strtoll_l(const char *nptr, char **endptr, int base, in strtoll_l() argument
30 return strtoll(nptr, endptr, base); in strtoll_l()
33 static inline unsigned long long strtoull_l(const char *nptr, char **endptr, in strtoull_l() argument
35 return strtoull(nptr, endptr, base); in strtoull_l()
38 static inline long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, in wcstoll_l() argument
40 return wcstoll(nptr, endptr, base); in wcstoll_l()
44 wchar_t **endptr, int base, in wcstoull_l() argument
46 return wcstoull(nptr, endptr, base); in wcstoull_l()
49 static inline long double wcstold_l(const wchar_t *nptr, wchar_t **endptr, in wcstold_l() argument
51 return wcstold(nptr, endptr); in wcstold_l()
/external/libvpx/libvpx/
Dargs.c123 char *endptr; in arg_parse_uint() local
125 rawval = (uint32_t)strtoul(arg->val, &endptr, 10); in arg_parse_uint()
127 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_uint()
134 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_uint()
140 char *endptr; in arg_parse_int() local
142 rawval = (int32_t)strtol(arg->val, &endptr, 10); in arg_parse_int()
144 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_int()
151 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_int()
161 char *endptr; in arg_parse_rational() local
165 rawval = strtol(arg->val, &endptr, 10); in arg_parse_rational()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dstrto-1.ll7 declare i64 @strtol(i8* %s, i8** %endptr, i32 %base)
10 declare double @strtod(i8* %s, i8** %endptr, i32 %base)
13 declare float @strtof(i8* %s, i8** %endptr, i32 %base)
16 declare i64 @strtoul(i8* %s, i8** %endptr, i32 %base)
19 declare i64 @strtoll(i8* %s, i8** %endptr, i32 %base)
22 declare double @strtold(i8* %s, i8** %endptr)
25 declare i64 @strtoull(i8* %s, i8** %endptr, i32 %base)
28 define void @test_simplify1(i8* %x, i8** %endptr) {
35 define void @test_simplify2(i8* %x, i8** %endptr) {
42 define void @test_simplify3(i8* %x, i8** %endptr) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dstrto-1.ll7 declare i64 @strtol(i8* %s, i8** %endptr, i32 %base)
10 declare double @strtod(i8* %s, i8** %endptr, i32 %base)
13 declare float @strtof(i8* %s, i8** %endptr, i32 %base)
16 declare i64 @strtoul(i8* %s, i8** %endptr, i32 %base)
19 declare i64 @strtoll(i8* %s, i8** %endptr, i32 %base)
22 declare double @strtold(i8* %s, i8** %endptr)
25 declare i64 @strtoull(i8* %s, i8** %endptr, i32 %base)
28 define void @test_simplify1(i8* %x, i8** %endptr) {
35 define void @test_simplify2(i8* %x, i8** %endptr) {
42 define void @test_simplify3(i8* %x, i8** %endptr) {
[all …]
/external/libnl/src/lib/
Droute.c114 char *arg, *endptr; in nl_cli_route_parse_metric() local
127 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_metric()
128 if (endptr == arg) in nl_cli_route_parse_metric()
155 char *arg, *endptr; in nl_cli_route_parse_nexthop() local
184 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_nexthop()
185 if (endptr == arg) in nl_cli_route_parse_nexthop()
200 char *endptr; in nl_cli_route_parse_table() local
203 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_table()
204 if (endptr == arg) { in nl_cli_route_parse_table()
218 char *endptr; in nl_cli_route_parse_prio() local
[all …]
/external/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()
/external/tensorflow/tensorflow/stream_executor/lib/
Dnumbers.cc24 char* endptr; in safe_strto32() local
25 *value = strtol(str, &endptr, 10); // NOLINT in safe_strto32()
26 if (endptr != str) { in safe_strto32()
27 while (isspace(*endptr)) ++endptr; in safe_strto32()
29 return *str != '\0' && *endptr == '\0'; in safe_strto32()
/external/lua/src/
Dlobject.c193 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number() argument
201 *endptr = cast(char *, s); /* nothing is valid yet */ in lua_strx2number()
223 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
236 *endptr = cast(char *, s); /* valid up to here */ in lua_strx2number()
252 char *endptr; in l_str2dloc() local
253 *result = (mode == 'x') ? lua_strx2number(s, &endptr) /* try to convert */ in l_str2dloc()
254 : lua_str2number(s, &endptr); in l_str2dloc()
255 if (endptr == s) return NULL; /* nothing recognized? */ in l_str2dloc()
256 while (lisspace(cast_uchar(*endptr))) endptr++; /* skip trailing spaces */ in l_str2dloc()
257 return (*endptr == '\0') ? endptr : NULL; /* OK if no trailing characters */ in l_str2dloc()
[all …]
/external/minijail/
Dutil.c168 long int parse_single_constant(char *constant_str, char **endptr) in parse_single_constant() argument
174 *endptr = constant_str + strlen(constant_str); in parse_single_constant()
180 res = strtol(constant_str, endptr, 0); in parse_single_constant()
185 res = strtoul(constant_str, endptr, 0); in parse_single_constant()
193 *endptr = constant_str; in parse_single_constant()
202 *endptr = constant_str; in parse_single_constant()
206 if (**endptr != '\0') { in parse_single_constant()
208 *endptr = constant_str; in parse_single_constant()
249 long int parse_constant(char *constant_str, char **endptr) in parse_constant() argument
258 if (endptr) in parse_constant()
[all …]
/external/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()
/external/clang/test/CodeGen/
Dlibcalls-fno-builtin.c30 double strtod(const char *nptr, char **endptr);
31 float strtof(const char *nptr, char **endptr);
32 long double strtold(const char *nptr, char **endptr);
33 long int strtol(const char *nptr, char **endptr, int base);
34 long long int strtoll(const char *nptr, char **endptr, int base);
35 unsigned long int strtoul(const char *nptr, char **endptr, int base);
36 unsigned long long int strtoull(const char *nptr, char **endptr, int base);
/external/perf_data_converter/src/quipper/
Dperf_stat_parser.cc46 char* endptr; in ParsePerfStatOutputToProto() local
47 uint64_t count = strtoull(tokens[1].c_str(), &endptr, 10); in ParsePerfStatOutputToProto()
48 if (*endptr != '\0') { in ParsePerfStatOutputToProto()
70 char* endptr; in SecondsStringToMillisecondsUint64() local
71 double seconds = strtod(str.c_str(), &endptr); in SecondsStringToMillisecondsUint64()
72 if (*endptr != '\0') { in SecondsStringToMillisecondsUint64()
/external/curl/src/
Dtool_paramhlp.c166 char *endptr; in str2num() local
169 num = strtol(str, &endptr, 10); in str2num()
172 if((endptr != str) && (endptr == str + strlen(str))) { in str2num()
215 char *endptr; in str2double() local
218 num = strtod(str, &endptr); in str2double()
225 if((endptr != str) && (endptr == str + strlen(str))) { in str2double()
399 char *endptr; in str2offset() local
406 CURLofft offt = curlx_strtoofft(str, &endptr, 0, val); in str2offset()
414 *val = strtol(str, &endptr, 0); in str2offset()
418 if((endptr != str) && (endptr == str + strlen(str))) in str2offset()
/external/strace/tests-mx32/
Doverflowuid.c53 char *endptr = 0; in read_int_from_file() local
55 lval = strtol(buf, &endptr, 10); in read_int_from_file()
56 if (!endptr || (*endptr && '\n' != *endptr) in read_int_from_file()
/external/strace/tests-m32/
Doverflowuid.c53 char *endptr = 0; in read_int_from_file() local
55 lval = strtol(buf, &endptr, 10); in read_int_from_file()
56 if (!endptr || (*endptr && '\n' != *endptr) in read_int_from_file()
/external/strace/tests/
Doverflowuid.c53 char *endptr = 0; in read_int_from_file() local
55 lval = strtol(buf, &endptr, 10); in read_int_from_file()
56 if (!endptr || (*endptr && '\n' != *endptr) in read_int_from_file()
/external/python/cpython2/Python/
Dpystrtod.c26 _Py_parse_inf_or_nan(const char *p, char **endptr) in _Py_parse_inf_or_nan() argument
56 *endptr = (char *)s; in _Py_parse_inf_or_nan()
92 _PyOS_ascii_strtod(const char *nptr, char **endptr) in _PyOS_ascii_strtod() argument
103 result = _Py_dg_strtod(nptr, endptr); in _PyOS_ascii_strtod()
106 if (*endptr == nptr) in _PyOS_ascii_strtod()
108 result = _Py_parse_inf_or_nan(nptr, endptr); in _PyOS_ascii_strtod()
125 _PyOS_ascii_strtod(const char *nptr, char **endptr) in _PyOS_ascii_strtod() argument
150 val = _Py_parse_inf_or_nan(nptr, endptr); in _PyOS_ascii_strtod()
151 if (*endptr != nptr) in _PyOS_ascii_strtod()
221 *endptr = (char *)nptr; in _PyOS_ascii_strtod()
[all …]
/external/iw/
Dmesh.c54 char *endptr = NULL; in _parse_u8() local
55 unsigned long int v = strtoul(str, &endptr, 10); in _parse_u8()
56 if (*endptr != '\0') in _parse_u8()
66 char *endptr = NULL; in _parse_u8_as_bool() local
67 unsigned long int v = strtoul(str, &endptr, 10); in _parse_u8_as_bool()
68 if (*endptr != '\0') in _parse_u8_as_bool()
78 char *endptr = NULL; in _parse_u16() local
79 long int v = strtol(str, &endptr, 10); in _parse_u16()
80 if (*endptr != '\0') in _parse_u16()
90 char *endptr = NULL; in _parse_u32() local
[all …]
/external/dynamic_depth/internal/strings/
Dnumbers.cc475 char* endptr; in safe_strtof() local
477 *value = strtod(str, &endptr); in safe_strtof()
479 *value = strtof(str, &endptr); in safe_strtof()
481 if (endptr != str) { in safe_strtof()
482 while (ascii_isspace(*endptr)) ++endptr; in safe_strtof()
488 return *str != '\0' && *endptr == '\0'; in safe_strtof()
504 char* endptr; in safe_strtod() local
505 *value = strtod(str, &endptr); in safe_strtod()
506 if (endptr != str) { in safe_strtod()
507 while (ascii_isspace(*endptr)) ++endptr; in safe_strtod()
[all …]
/external/python/cpython3/Python/
Dpystrtod.c28 _Py_parse_inf_or_nan(const char *p, char **endptr) in _Py_parse_inf_or_nan() argument
56 *endptr = (char *)s; in _Py_parse_inf_or_nan()
63 _Py_parse_inf_or_nan(const char *p, char **endptr) in _Py_parse_inf_or_nan() argument
93 *endptr = (char *)s; in _Py_parse_inf_or_nan()
131 _PyOS_ascii_strtod(const char *nptr, char **endptr) in _PyOS_ascii_strtod() argument
142 result = _Py_dg_strtod(nptr, endptr); in _PyOS_ascii_strtod()
145 if (*endptr == nptr) in _PyOS_ascii_strtod()
147 result = _Py_parse_inf_or_nan(nptr, endptr); in _PyOS_ascii_strtod()
164 _PyOS_ascii_strtod(const char *nptr, char **endptr) in _PyOS_ascii_strtod() argument
189 val = _Py_parse_inf_or_nan(nptr, endptr); in _PyOS_ascii_strtod()
[all …]
/external/libcxx/test/std/depr/depr.c.headers/
Dstdlib_h.pass.cpp73 char** endptr = 0; in main() local
79 static_assert((std::is_same<decltype(strtod("", endptr)), double>::value), ""); in main()
80 static_assert((std::is_same<decltype(strtof("", endptr)), float>::value), ""); in main()
81 static_assert((std::is_same<decltype(strtold("", endptr)), long double>::value), ""); in main()
82 static_assert((std::is_same<decltype(strtol("", endptr,0)), long>::value), ""); in main()
83 static_assert((std::is_same<decltype(strtoll("", endptr,0)), long long>::value), ""); in main()
84 static_assert((std::is_same<decltype(strtoul("", endptr,0)), unsigned long>::value), ""); in main()
85 static_assert((std::is_same<decltype(strtoull("", endptr,0)), unsigned long long>::value), ""); in main()

12345678