Home
last modified time | relevance | path

Searched refs:strtol (Results 1 - 25 of 740) sorted by relevance

12345678910>>...30

/kernel/liteos_m/testsuites/unittest/posix/src/stdlib/
H A Dstrtol_test.c77 long ret = strtol(nPtr16, &endPtr16, 16);
79 LOG("[DEMO] posix stdlib test case 1:strtol(base=16) ret:%ld,%s, endPtr:%s ok.\n", ret, nPtr16, endPtr16);
81 LOG("[DEMO] posix stdlib test case 1:strtol(base=16) ret:%ld,%s fail.\n", ret, nPtr16);
97 long ret = strtol(nPtr16, &endPtr16, 0);
99 LOG("[DEMO] posix stdlib test case 2:strtol(base=16) ret:%ld,%s, endPtr:%s ok.\n", ret, nPtr16, endPtr16);
101 LOG("[DEMO] posix stdlib test case 2:strtol(base=16) ret:%ld,%s fail.\n", ret, nPtr16);
117 long ret = strtol(nPtr10, &endPtr10, 10);
119 LOG("[DEMO] posix stdlib test case 3:strtol(base=10) ret:%ld,%s, endPtr:%s ok.\n", ret, nPtr10, endPtr10);
121 LOG("[DEMO] posix stdlib test case 3:strtol(base=10) ret:%ld,%s fail.\n", ret, nPtr10);
137 long ret = strtol(nPtr1
[all...]
/third_party/musl/libc-test/src/functional/
H A Dstrtol.c32 TEST(l, strtol("2147483647", 0, 0), 2147483647L, "max 32bit signed %ld != %ld"); in main()
36 TEST(l, strtol(s="2147483648", &c, 0), 2147483647L, "uncaught overflow %ld != %ld"); in main()
39 TEST(l, strtol(s="-2147483649", &c, 0), -2147483647L-1, "uncaught overflow %ld != %ld"); in main()
61 TEST(l, strtol(s="9223372036854775808", &c, 0), 9223372036854775807L, "uncaught overflow %ld != %ld"); in main()
64 TEST(l, strtol(s="-9223372036854775809", &c, 0), -9223372036854775807L-1, "uncaught overflow %ld != %ld"); in main()
118 TEST(l, strtol("z", 0, 36), 35, "%ld != %ld"); in main()
119 TEST(l, strtol("00010010001101000101011001111000", 0, 2), 0x12345678, "%ld != %ld"); in main()
120 TEST(l, strtol(s="0F5F", &c, 16), 0x0f5f, "%ld != %ld"); in main()
122 TEST(l, strtol(s="0xz", &c, 16), 0, "%ld != %ld"); in main()
125 TEST(l, strtol( in main()
[all...]
/kernel/liteos_m/testsuites/unittest/xts/io/
H A Dxts_io_stdlib_test.c123 * @tc.name strtol basic function test
130 long ret = strtol(nPtr, &endPtr, 10); /* 10 common data for test, no special meaning */
134 ret = strtol(endPtr, &endPtr, 2); /* 2 common data for test, no special meaning */
138 ret = strtol(endPtr, &endPtr, 16); /* 16 common data for test, no special meaning */
142 ret = strtol(endPtr, &endPtr, 8); /* 8 common data for test, no special meaning */
146 ret = strtol(endPtr, &endPtr, 65); /* 65 common data for test, no special meaning */
150 ret = strtol(endPtr, &endPtr, 0);
154 ret = strtol(endPtr, &endPtr, 10); /* 10 common data for test, no special meaning */
159 ret = strtol(nPtr1, &endPtr, 10); /* 10 common data for test, no special meaning */
163 ret = strtol(endPt
[all...]
/third_party/backends/sanei/
H A Dsanei_config2.c110 bus = strtol (name, &end, 10); in sanei_config_attach_matching_devices()
118 channel = strtol (name, &end, 10); in sanei_config_attach_matching_devices()
126 id = strtol (name, &end, 10); in sanei_config_attach_matching_devices()
134 lun = strtol (name, &end, 10); in sanei_config_attach_matching_devices()
/test/xts/acts/kernel_lite/io_posix/src/
H A DIoTestStdlib.cpp165 * @tc.name strtol basic function test
172 long ret = strtol(nPtr, &endPtr, 10); // decimal in HWTEST_F()
173 EXPECT_EQ(ret, 12) << "> strtol fail, errno = " << errno; in HWTEST_F()
176 ret = strtol(endPtr, &endPtr, 2); // binary in HWTEST_F()
177 EXPECT_EQ(ret, 6) << "> strtol fail, errno = " << errno; in HWTEST_F()
180 ret = strtol(endPtr, &endPtr, 16); // hexadecimal in HWTEST_F()
181 EXPECT_EQ(ret, 0XDEFE) << "> strtol fail, errno = " << errno; in HWTEST_F()
185 ret = strtol(endPtr, &endPtr, 8); // octal in HWTEST_F()
186 EXPECT_EQ(ret, 0666) << "> strtol fail, errno = " << errno; in HWTEST_F()
189 ret = strtol(endPt in HWTEST_F()
[all...]
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_cache_entity.cpp97 return std::strtol(maxAge_.c_str(), nullptr, DECIMAL); in GetMaxAgeSeconds()
106 return std::strtol(maxStale_.c_str(), nullptr, DECIMAL); in GetMaxStaleSeconds()
114 return std::strtol(minFresh_.c_str(), nullptr, DECIMAL); in GetMinFreshSeconds()
256 return std::strtol(age_.c_str(), nullptr, DECIMAL); in GetAgeSeconds()
264 return std::strtol(maxAge_.c_str(), nullptr, DECIMAL); in GetMaxAgeSeconds()
272 return std::strtol(sMaxAge_.c_str(), nullptr, DECIMAL); in GetSMaxAgeSeconds()
/kernel/linux/linux-5.10/tools/virtio/ringtest/
H A Dmain.c87 cpu = strtol(arg, &endptr, 0); in set_affinity()
322 ring_size = strtol(optarg, &endptr, 0); in main()
327 c = strtol(optarg, &endptr, 0); in main()
333 c = strtol(optarg, &endptr, 0); in main()
339 c = strtol(optarg, &endptr, 0); in main()
345 c = strtol(optarg, &endptr, 0); in main()
/kernel/linux/linux-6.6/tools/virtio/ringtest/
H A Dmain.c87 cpu = strtol(arg, &endptr, 0); in set_affinity()
322 ring_size = strtol(optarg, &endptr, 0); in main()
327 c = strtol(optarg, &endptr, 0); in main()
333 c = strtol(optarg, &endptr, 0); in main()
339 c = strtol(optarg, &endptr, 0); in main()
345 c = strtol(optarg, &endptr, 0); in main()
/kernel/linux/linux-5.10/samples/seccomp/
H A Ddropper.c66 if (install_filter(strtol(argv[1], NULL, 0), strtol(argv[2], NULL, 0), in main()
67 strtol(argv[3], NULL, 0))) in main()
/kernel/linux/linux-6.6/samples/seccomp/
H A Ddropper.c71 if (install_filter(strtol(argv[1], NULL, 0), strtol(argv[2], NULL, 0), in main()
72 strtol(argv[3], NULL, 0))) in main()
/third_party/mesa3d/src/freedreno/afuc/
H A Dasm.h85 ret = strtol(str + 1, &retstr, 16); in parse_reg()
101 ret = strtol(str + 1, &retstr, 16); in parse_literal()
114 return strtol(str + 1, NULL, 10); in parse_bit()
/third_party/mesa3d/src/vulkan/overlay-layer/
H A Doverlay_params.c72 return strtol(str, NULL, 0) * 1000; in parse_fps_sampling_period()
78 return strtol(str, NULL, 0) != 0; in parse_no_display()
84 return strtol(str, NULL, 0); in parse_unsigned()
183 strtol(value, NULL, 0); \ in parse_overlay_env()
/third_party/libcoap/tests/
H A Dtest_tls.c74 p1 = strtol(vers, &endptr, 10); in t_tls2()
76 p2 = strtol(endptr+1, &endptr, 10); in t_tls2()
78 p3 = strtol(endptr+1, &endptr, 10); in t_tls2()
/kernel/linux/linux-5.10/scripts/dtc/
H A Ddtc.c192 outversion = strtol(optarg, NULL, 0); in main()
198 reservenum = strtol(optarg, NULL, 0); in main()
201 minsize = strtol(optarg, NULL, 0); in main()
204 padsize = strtol(optarg, NULL, 0); in main()
207 alignsize = strtol(optarg, NULL, 0); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/
H A Dbench_bpf_hashmap_lookup.c62 ret = strtol(arg, NULL, 10); in parse_arg()
70 ret = strtol(arg, NULL, 0); in parse_arg()
78 ret = strtol(arg, NULL, 10); in parse_arg()
86 ret = strtol(arg, NULL, 10); in parse_arg()
94 ret = strtol(arg, NULL, 10); in parse_arg()
/third_party/ffmpeg/libavformat/
H A Drtpproto.c122 rtcp_port = strtol(buf, NULL, 10); in ff_rtp_set_remote_url()
249 s->ttl = strtol(buf, NULL, 10); in rtp_open()
252 s->rtcp_port = strtol(buf, NULL, 10); in rtp_open()
255 s->local_rtpport = strtol(buf, NULL, 10); in rtp_open()
258 s->local_rtpport = strtol(buf, NULL, 10); in rtp_open()
261 s->local_rtcpport = strtol(buf, NULL, 10); in rtp_open()
264 s->pkt_size = strtol(buf, NULL, 10); in rtp_open()
267 s->connect = strtol(buf, NULL, 10); in rtp_open()
270 s->write_to_source = strtol(buf, NULL, 10); in rtp_open()
273 s->dscp = strtol(bu in rtp_open()
[all...]
H A Dlibsrt.c546 s->pbkeylen = strtol(buf, NULL, 10); in libsrt_open()
554 s->enforced_encryption = strtol(buf, NULL, 10); in libsrt_open()
557 s->kmrefreshrate = strtol(buf, NULL, 10); in libsrt_open()
560 s->kmpreannounce = strtol(buf, NULL, 10); in libsrt_open()
567 s->mss = strtol(buf, NULL, 10); in libsrt_open()
570 s->ffs = strtol(buf, NULL, 10); in libsrt_open()
573 s->ipttl = strtol(buf, NULL, 10); in libsrt_open()
576 s->iptos = strtol(buf, NULL, 10); in libsrt_open()
582 s->oheadbw = strtol(buf, NULL, 10); in libsrt_open()
597 s->tlpktdrop = strtol(bu in libsrt_open()
[all...]
/third_party/alsa-lib/src/control/
H A Dctlparse.c65 val = strtol(s, &p, 0); in get_integer()
68 (void)strtol(p, &p, 10); in get_integer()
93 val = strtol(s, &p, 0); in get_integer64()
96 (void)strtol(p, &p, 10); in get_integer64()
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/label_classify/
H A Dlabel_classify.cpp276 settings.accel = strtol(optarg, nullptr, BASE_NUMBER); in InitSettings()
282 settings.loopCount = strtol(optarg, nullptr, BASE_NUMBER); in InitSettings()
294 settings.numberOfResults = strtol(optarg, nullptr, BASE_NUMBER); in InitSettings()
303 settings.verbose = strtol(optarg, nullptr, BASE_NUMBER); in InitSettings()
306 settings.numberOfWarmupRuns = strtol(optarg, nullptr, BASE_NUMBER); in InitSettings()
309 settings.printResult = strtol(optarg, nullptr, BASE_NUMBER); in InitSettings()
/third_party/mbedtls/programs/util/
H A Dstrerror.c53 val = strtol(argv[1], &end, 10); in main()
55 val = strtol(argv[1], &end, 16); in main()
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/
H A Dhttp_cache_request.cpp97 return std::strtol(maxAge_.c_str(), nullptr, DECIMAL); in GetMaxAgeSeconds()
106 return std::strtol(maxStale_.c_str(), nullptr, DECIMAL); in GetMaxStaleSeconds()
114 return std::strtol(minFresh_.c_str(), nullptr, DECIMAL); in GetMinFreshSeconds()
/third_party/mesa3d/src/gallium/frontends/dri/
H A Ddri_query_renderer.c35 v[0] = strtol(ver, &endptr, 10); in driQueryRendererIntegerCommon()
40 v[1] = strtol(endptr + 1, &endptr, 10); in driQueryRendererIntegerCommon()
45 v[2] = strtol(endptr + 1, &endptr, 10); in driQueryRendererIntegerCommon()
/third_party/elfutils/tests/
H A Ddwelf_elf_e_machine_string.c47 val = strtol (&argv[i][2], NULL, 16); in main()
49 val = strtol (argv[i], NULL, 10); in main()
54 perror ("strtol"); in main()
/third_party/musl/porting/liteos_m/kernel/src/stdlib/
H A Dstrtol.c36 long strtol(const char *restrict s, char **restrict p, int base) in strtol() function
41 weak_alias(strtol, __strtol_internal);
/third_party/musl/porting/uniproton/kernel/src/stdlib/
H A Dstrtol.c36 long strtol(const char *restrict s, char **restrict p, int base) in strtol() function
41 weak_alias(strtol, __strtol_internal);

Completed in 13 milliseconds

12345678910>>...30