Home
last modified time | relevance | path

Searched refs:nPtr (Results 1 – 3 of 3) sorted by relevance

/kernel/liteos_m/testsuites/unittest/posix/src/stdlib/
Dstrtoull_test.c77 char nPtr[] = "12 0110 0XDEFE 0666 1.6"; variable
79 unsigned long long ret = strtoull(nPtr, &endPtr, 10);
81 …DEMO] posix stdlib test case 1:strtoull(base=10) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
83 LOG("[DEMO] posix stdlib test case 1:strtoull(base=10) ret:%llu,%s fail.\n", ret, nPtr);
97 char nPtr[] = " 0110 0XDEFE 0666 1.6"; variable
99 unsigned long long ret = strtoull(nPtr, &endPtr, 2);
101 …[DEMO] posix stdlib test case 2:strtoull(base=2) ret:%llu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
103 LOG("[DEMO] posix stdlib test case 2:strtoull(base=2) ret:%llu,%s fail.\n", ret, nPtr);
117 char nPtr[] = " 0XDEFE 0666 1.6"; variable
119 unsigned long long ret = strtoull(nPtr, &endPtr, 16);
[all …]
Dstrtoul_test.c76 char nPtr[] = "12 0110 0XDEFE 0666 4294967295 4294967296 12.34"; variable
78 unsigned long ret = strtoul(nPtr, &endPtr, 10);
80 …"[DEMO] posix stdlib test case 1:strtoul(base=10) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
82 LOG("[DEMO] posix stdlib test case 1:strtoul(base=10) ret:%lu,%s fail.\n", ret, nPtr);
96 char nPtr[] = " 0110 0XDEFE 0666 4294967295 4294967296 12.34"; variable
98 unsigned long ret = strtoul(nPtr, &endPtr, 2);
100 …("[DEMO] posix stdlib test case 2:strtoul(base=2) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
116 char nPtr[] = " 0XDEFE 0666 4294967295 4294967296 12.34"; variable
118 unsigned long ret = strtoul(nPtr, &endPtr, 16);
120 …"[DEMO] posix stdlib test case 3:strtoul(base=16) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
[all …]
Dstrtol_test.c255 char nPtr[] = "12 0110 0XDEFE 0666 -1.6"; variable
257 long ret = strtol(nPtr, &endPtr, 10);
276 char nPtr[] = "12 1.5"; variable
278 long ret = strtol(nPtr, &endPtr, 65);
292 char nPtr[] = "2147483647 -2147483648"; variable
294 long ret = strtol(nPtr, &endPtr, 10);
312 char nPtr[] = " -2147483648"; variable
314 long ret = strtol(nPtr, &endPtr, 10);