/kernel/liteos_m/testsuites/unittest/xts/io/ |
D | xts_io_stdlib_test.c | 52 char *endPtr = NULL; variable 53 float ret = strtof(" -3.40E+38 hello", &endPtr); 55 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " hello", endPtr); 57 ret = strtof(" 3.40E+38 ===", &endPtr); 59 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " ===", endPtr); 61 ret = strtof("-9.6e17 this 123", &endPtr); 63 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " this 123", endPtr); 65 ret = strtof("this is string", &endPtr); 67 ICUNIT_ASSERT_STRING_EQUAL(endPtr, "this is string", endPtr); 78 char *endPtr = NULL; variable [all …]
|
/kernel/liteos_m/testsuites/unittest/posix/src/stdlib/ |
D | strtoul_test.c | 77 char *endPtr = NULL; 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); 85 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 4294967295 4294967296 12.34", 0); 97 char *endPtr = NULL; 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); 102 LOG("[DEMO] posix stdlib test case 2:strtoul(base=2) ret:%lu,%s fail.\n", ret, endPtr); 105 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0XDEFE 0666 4294967295 4294967296 12.34", 0); 117 char *endPtr = NULL; variable [all …]
|
D | strtoull_test.c | 78 char *endPtr = NULL; 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); 86 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 1.6", 0); 98 char *endPtr = NULL; 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); 106 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0XDEFE 0666 1.6", 0); 118 char *endPtr = NULL; variable 119 unsigned long long ret = strtoull(nPtr, &endPtr, 16); [all …]
|
D | strtol_test.c | 256 char *endPtr = NULL; variable 257 long ret = strtol(nPtr, &endPtr, 10); 259 …EMO] posix stdlib test case 10:strtol(base=10) ret:%ld, %s, endPtr:%s ok.\n", ret, endPtr, endPtr); 261 LOG("[DEMO] posix stdlib test case 10:strtol(base=10) ret:%ld, %s fail.\n", ret, endPtr); 264 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 -1.6", 0); 277 char *endPtr = NULL; variable 278 long ret = strtol(nPtr, &endPtr, 65); 280 …EMO] posix stdlib test case 11:strtol(base=65) ret:%ld, %s, endPtr:%s ok.\n", ret, endPtr, endPtr); 282 LOG("[DEMO] posix stdlib test case 11:strtol(base=65) ret:%ld, %s fail.\n", ret, endPtr); 285 ICUNIT_ASSERT_STRING_EQUAL(endPtr, "12 1.5", 0); [all …]
|
/kernel/liteos_a/kernel/base/misc/ |
D | vm_shellcmd.c | 143 CHAR *endPtr = NULL; in OsShellCmdV2P() local 153 vaddr = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdV2P() 154 if ((endPtr == NULL) || (*endPtr != 0) || !LOS_IsUserAddress(vaddr)) { in OsShellCmdV2P() 206 CHAR *endPtr = NULL; in OsShellCmdOom() local 217 lowMemThreshold = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdOom() 218 if ((endPtr == NULL) || (*endPtr != 0)) { in OsShellCmdOom() 225 checkInterval = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdOom() 226 if ((endPtr == NULL) || (*endPtr != 0)) { in OsShellCmdOom() 233 reclaimMemThreshold = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdOom() 234 if ((endPtr == NULL) || (*endPtr != 0)) { in OsShellCmdOom()
|
D | kill_shellcmd.c | 62 CHAR *endPtr = NULL; in OsShellCmdKill() local 65 sigNo = strtoul(argv[0], &endPtr, 0); in OsShellCmdKill() 66 if (*endPtr != 0) { in OsShellCmdKill() 70 endPtr = NULL; in OsShellCmdKill() 71 pidNo = strtoul(argv[1], &endPtr, 0); in OsShellCmdKill() 72 if (*endPtr != 0) { in OsShellCmdKill()
|
D | swtmr_shellcmd.c | 148 CHAR *endPtr = NULL; in OsShellCmdSwtmrInfoGet() local 162 timerID = strtoul(argv[0], &endPtr, 0); in OsShellCmdSwtmrInfoGet() 163 if ((endPtr == NULL) || (*endPtr != 0) || (timerID > LOSCFG_BASE_CORE_SWTMR_LIMIT)) { in OsShellCmdSwtmrInfoGet()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdlib/ |
D | strtoull_fuzz.c | 53 char *endPtr = NULL; in StrtoullFuzzTest() local 70 (void)strtoull(str, endPtr, base); in StrtoullFuzzTest()
|
D | strtoul_fuzz.c | 53 char *endPtr = NULL; in StrtoulFuzzTest() local 70 (void)strtoul(str, endPtr, base); in StrtoulFuzzTest()
|
D | strtol_fuzz.c | 53 char *endPtr = NULL; in StrtolFuzzTest() local 70 (void)strtol(str, endPtr, base); in StrtolFuzzTest()
|
/kernel/linux/linux-5.10/lib/zstd/ |
D | bitstream.h | 75 char *endPtr; member 168 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->ptr); in BIT_initCStream() 210 if (bitC->ptr > bitC->endPtr) in BIT_flushBits() 211 bitC->ptr = bitC->endPtr; in BIT_flushBits() 224 if (bitC->ptr >= bitC->endPtr) in BIT_closeCStream()
|
/kernel/liteos_a/kernel/base/ipc/ |
D | los_sem_debug.c | 267 CHAR *endPtr = NULL; in OsShellCmdSemInfoGet() local 288 semID = strtoul(argv[0], &endPtr, 0); in OsShellCmdSemInfoGet() 289 if ((endPtr == NULL) || (*endPtr != 0)) { in OsShellCmdSemInfoGet()
|
/kernel/liteos_m/components/trace/ |
D | los_trace.c | 380 CHAR *endPtr = NULL; in OsShellCmdTraceSetMask() local 390 mask = strtoul(argv[0], &endPtr, 0); in OsShellCmdTraceSetMask() 399 CHAR *endPtr = NULL; in OsShellCmdTraceDump() local 409 toClient = strtoul(argv[0], &endPtr, 0) != 0 ? TRUE : FALSE; in OsShellCmdTraceDump()
|
/kernel/liteos_a/kernel/extended/trace/ |
D | los_trace.c | 385 CHAR *endPtr = NULL; in OsShellCmdTraceSetMask() local 395 mask = strtoul(argv[0], &endPtr, 0); in OsShellCmdTraceSetMask() 404 CHAR *endPtr = NULL; in OsShellCmdTraceDump() local 414 toClient = strtoul(argv[0], &endPtr, 0) != 0 ? TRUE : FALSE; in OsShellCmdTraceDump()
|
/kernel/liteos_a/kernel/base/vm/ |
D | shm.c | 883 CHAR *endPtr = NULL; in OsShellCmdShm() local 897 shmid = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdShm() 898 if ((endPtr == NULL) || (*endPtr != 0)) { in OsShellCmdShm()
|