/external/compiler-rt/test/asan/TestCases/ |
D | strtoll_strict.c | 33 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 …]
|
D | strtol_strict.c | 31 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/dhcpcd-6.8.2/compat/ |
D | strtoi.c | 35 strtoi(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoi() argument 43 if (endptr == NULL) in strtoi() 44 endptr = &ep; in strtoi() 50 r = strtoimax(nptr, endptr, base); in strtoi() 55 if (nptr == *endptr) in strtoi() 57 else if (**endptr != '\0') in strtoi() 75 strtou(const char * __restrict nptr, char ** __restrict endptr, int base, in strtou() argument 83 if (endptr == NULL) in strtou() 84 endptr = &ep; in strtou() 90 r = strtoumax(nptr, endptr, base); in strtou() [all …]
|
/external/libvpx/libvpx/ |
D | args.c | 139 char *endptr; in arg_parse_uint() local 141 rawval = strtol(arg->val, &endptr, 10); in arg_parse_uint() 143 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_uint() 151 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_uint() 158 char *endptr; in arg_parse_int() local 160 rawval = strtol(arg->val, &endptr, 10); in arg_parse_int() 162 if (arg->val[0] != '\0' && endptr[0] == '\0') { in arg_parse_int() 170 die("Option %s: Invalid character '%c'\n", arg->name, *endptr); in arg_parse_int() 181 char *endptr; in arg_parse_rational() local 185 rawval = strtol(arg->val, &endptr, 10); in arg_parse_rational() [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | strto-1.ll | 7 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/ |
D | route.c | 114 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 202 lval = strtoul(arg, &endptr, 0); in nl_cli_route_parse_table() 203 if (endptr == arg) { in nl_cli_route_parse_table() 214 char *endptr; in nl_cli_route_parse_prio() local [all …]
|
/external/libcxx/include/support/xlocale/ |
D | xlocale.h | 160 static inline long double strtold_l(const char *nptr, char **endptr, locale_t) { in strtold_l() argument 161 return strtold(nptr, endptr); in strtold_l() 164 static inline long long strtoll_l(const char *nptr, char **endptr, int base, in strtoll_l() argument 166 return strtoll(nptr, endptr, base); in strtoll_l() 169 static inline unsigned long long strtoull_l(const char *nptr, char **endptr, in strtoull_l() argument 171 return strtoull(nptr, endptr, base); in strtoull_l() 174 static inline long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, in wcstoll_l() argument 176 return wcstoll(nptr, endptr, base); in wcstoll_l() 180 wchar_t **endptr, int base, in wcstoull_l() argument 182 return wcstoull(nptr, endptr, base); in wcstoull_l() [all …]
|
/external/elfutils/tests/ |
D | dwfl-report-elf-align.c | 52 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/minijail/ |
D | util.c | 64 long int parse_single_constant(char *constant_str, char **endptr); 84 long int parse_constant(char *constant_str, char **endptr) in parse_constant() argument 109 if (endptr) in parse_constant() 110 *endptr = lastpos; in parse_constant() 114 long int parse_single_constant(char *constant_str, char **endptr) in parse_single_constant() argument 119 if (endptr) in parse_single_constant() 120 *endptr = constant_str + strlen(constant_str); in parse_single_constant() 126 return strtol(constant_str, endptr, 0); in parse_single_constant()
|
/external/libchrome/sandbox/linux/suid/ |
D | sandbox.c | 388 char* endptr = NULL; in CheckAndExportApiVersion() local 389 long long_api_number = strtol(api_string, &endptr, 10); in CheckAndExportApiVersion() 390 if (!endptr || *endptr || errno != 0 || long_api_number < INT_MIN || in CheckAndExportApiVersion() 441 char* endptr = NULL; in main() local 444 unsigned long pid_ul = strtoul(argv[2], &endptr, 10); in main() 445 if (pid_ul == ULONG_MAX || !endptr || *endptr || errno != 0) in main() 448 endptr = NULL; in main() 450 score = strtol(argv[3], &endptr, 10); in main() 451 if (score == LONG_MAX || score == LONG_MIN || !endptr || *endptr || in main()
|
/external/clang/test/CodeGen/ |
D | libcalls-fno-builtin.c | 23 double strtod(const char *nptr, char **endptr); 24 float strtof(const char *nptr, char **endptr); 25 long double strtold(const char *nptr, char **endptr); 26 long int strtol(const char *nptr, char **endptr, int base); 27 long long int strtoll(const char *nptr, char **endptr, int base); 28 unsigned long int strtoul(const char *nptr, char **endptr, int base); 29 unsigned long long int strtoull(const char *nptr, char **endptr, int base);
|
/external/e2fsprogs/resize/ |
D | online.c | 27 char *endptr; in parse_version_number() local 32 major = strtol(cp, &endptr, 10); in parse_version_number() 33 if (cp == endptr || *endptr != '.') in parse_version_number() 35 cp = endptr + 1; in parse_version_number() 36 minor = strtol(cp, &endptr, 10); in parse_version_number() 37 if (cp == endptr || *endptr != '.') in parse_version_number() 39 cp = endptr + 1; in parse_version_number() 40 rev = strtol(cp, &endptr, 10); in parse_version_number() 41 if (cp == endptr) in parse_version_number()
|
/external/curl/src/ |
D | tool_paramhlp.c | 161 char *endptr; in str2num() local 162 long num = strtol(str, &endptr, 10); in str2num() 163 if((endptr != str) && (endptr == str + strlen(str))) { in str2num() 203 char *endptr; in str2double() local 204 double num = strtod(str, &endptr); in str2double() 205 if((endptr != str) && (endptr == str + strlen(str))) { in str2double() 372 char *endptr; in str2offset() local 378 *val = curlx_strtoofft(str, &endptr, 0); in str2offset() 382 *val = strtol(str, &endptr, 0); in str2offset() 386 if((endptr != str) && (endptr == str + strlen(str))) in str2offset()
|
/external/libcxx/test/std/depr/depr.c.headers/ |
D | stdlib_h.pass.cpp | 41 char** endptr = 0; in main() local 47 static_assert((std::is_same<decltype(strtod("", endptr)), double>::value), ""); in main() 48 static_assert((std::is_same<decltype(strtof("", endptr)), float>::value), ""); in main() 49 static_assert((std::is_same<decltype(strtold("", endptr)), long double>::value), ""); in main() 50 static_assert((std::is_same<decltype(strtol("", endptr,0)), long>::value), ""); in main() 51 static_assert((std::is_same<decltype(strtoll("", endptr,0)), long long>::value), ""); in main() 52 static_assert((std::is_same<decltype(strtoul("", endptr,0)), unsigned long>::value), ""); in main() 53 static_assert((std::is_same<decltype(strtoull("", endptr,0)), unsigned long long>::value), ""); in main()
|
/external/iw/ |
D | mesh.c | 54 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/curl/lib/ |
D | strtoofft.c | 55 curlx_strtoll(const char *nptr, char **endptr, int base) in curlx_strtoll() argument 80 if(endptr) { in curlx_strtoll() 81 *endptr = end; in curlx_strtoll() 138 if(endptr) in curlx_strtoll() 139 *endptr = end; in curlx_strtoll()
|
/external/pcre/dist/ |
D | pcregrep.c | 995 char *endptr = option_data; in decode_number() local 996 while (*endptr != 0 && isspace((unsigned char)(*endptr))) endptr++; in decode_number() 997 while (isdigit((unsigned char)(*endptr))) in decode_number() 998 n = n * 10 + (int)(*endptr++ - '0'); in decode_number() 999 if (toupper(*endptr) == 'K') in decode_number() 1002 endptr++; in decode_number() 1004 else if (toupper(*endptr) == 'M') in decode_number() 1007 endptr++; in decode_number() 1010 if (*endptr != 0) /* Error */ in decode_number() 1119 end_of_line(char *p, char *endptr, int *lenptr) in end_of_line() argument [all …]
|
/external/libcxx/include/support/win32/ |
D | support.h | 54 _LIBCPP_ALWAYS_INLINE float strtof(const char *nptr, char **endptr) in strtof() argument 56 return _Stof(nptr, endptr, 0); in strtof() 58 _LIBCPP_ALWAYS_INLINE double strtod(const char *nptr, char **endptr) in strtod() argument 60 return _Stod(nptr, endptr, 0); in strtod() 62 _LIBCPP_ALWAYS_INLINE long double strtold(const char *nptr, char **endptr) in strtold() argument 64 return _Stold(nptr, endptr, 0); in strtold()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil.h | 318 LIBPROTOBUF_EXPORT int32 strto32_adaptor(const char *nptr, char **endptr, 320 LIBPROTOBUF_EXPORT uint32 strtou32_adaptor(const char *nptr, char **endptr, 323 inline int32 strto32(const char *nptr, char **endptr, int base) { in strto32() argument 325 return strtol(nptr, endptr, base); in strto32() 327 return strto32_adaptor(nptr, endptr, base); in strto32() 330 inline uint32 strtou32(const char *nptr, char **endptr, int base) { in strtou32() argument 332 return strtoul(nptr, endptr, base); in strtou32() 334 return strtou32_adaptor(nptr, endptr, base); in strtou32() 339 inline int64 strto64(const char *nptr, char **endptr, int base) { in strto64() argument 342 return strtoll(nptr, endptr, base); in strto64() [all …]
|
/external/libcxx/test/std/language.support/support.runtime/ |
D | cstdlib.pass.cpp | 53 char** endptr = 0; in main() local 59 static_assert((std::is_same<decltype(std::strtod("", endptr)), double>::value), ""); in main() 60 static_assert((std::is_same<decltype(std::strtof("", endptr)), float>::value), ""); in main() 61 static_assert((std::is_same<decltype(std::strtold("", endptr)), long double>::value), ""); in main() 62 static_assert((std::is_same<decltype(std::strtol("", endptr,0)), long>::value), ""); in main() 63 static_assert((std::is_same<decltype(std::strtoll("", endptr,0)), long long>::value), ""); in main() 64 static_assert((std::is_same<decltype(std::strtoul("", endptr,0)), unsigned long>::value), ""); in main() 65 …static_assert((std::is_same<decltype(std::strtoull("", endptr,0)), unsigned long long>::value), ""… in main()
|
/external/pdfium/core/src/fxcodec/codec/ |
D | fx_codec.cpp | 162 if (endptr) \ 163 *endptr = (char*)ptr; \ 172 extern "C" double FXstrtod(const char* nptr, char** endptr) { in FXstrtod() argument 217 if (endptr) { in FXstrtod() 218 *endptr = (char*)exp_ptr; in FXstrtod() 226 if (endptr) { in FXstrtod() 227 *endptr = (char*)exp_ptr; in FXstrtod() 234 if (endptr) { in FXstrtod() 235 *endptr = (char*)nptr; in FXstrtod() 239 if (endptr) { in FXstrtod() [all …]
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | interception_test.cc | 10 extern "C" long __interceptor_strtol(const char *nptr, char **endptr, int base); 11 extern "C" long strtol(const char *nptr, char **endptr, int base) { in strtol() argument 13 return __interceptor_strtol(nptr, endptr, base); in strtol()
|
/external/bison/lib/ |
D | strtol.c | 238 INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr, in INTERNAL() 378 if (endptr != NULL) in INTERNAL() 379 *endptr = (STRING_TYPE *) s; in INTERNAL() 409 if (endptr != NULL) in INTERNAL() 413 *endptr = (STRING_TYPE *) &save[-1]; in INTERNAL() 416 *endptr = (STRING_TYPE *) nptr; in INTERNAL() 429 strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, in strtol() argument 432 return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); in strtol()
|
/external/libmtp/examples/ |
D | trexist.c | 35 char *endptr; in main() local 46 id = strtoul(argv[1], &endptr, 10); in main() 47 if ( *endptr != 0 ) { in main()
|
/external/valgrind/cachegrind/ |
D | cg_arch.c | 83 HChar* endptr; in parse_cache_opt() local 87 i1 = VG_(strtoll10)(optval, &endptr); if (*endptr != ',') goto bad; in parse_cache_opt() 88 i2 = VG_(strtoll10)(endptr+1, &endptr); if (*endptr != ',') goto bad; in parse_cache_opt() 89 i3 = VG_(strtoll10)(endptr+1, &endptr); if (*endptr != '\0') goto bad; in parse_cache_opt()
|