Lines Matching full:10
178 #define BUFSIZE 10
193 memset(buffer, 0, 10); in ZTEST()
194 for (i = 0; i < 10; i++) { in ZTEST()
259 "strncmp 10"); in ZTEST()
264 "strncmp 10 with \0"); in ZTEST()
277 strcpy(buffer, "10 chars!\0"); in ZTEST()
279 zassert_str_equal(buffer, "10 chars!\0", "strcpy"); in ZTEST()
293 strncpy(buffer, "This is over 10 characters", BUFSIZE); in ZTEST()
313 strncpy(buffer, "Copy 10", BUFSIZE); in ZTEST()
320 ret = strncmp(rs, "10", 2); in ZTEST()
578 zassert_equal(memcpy(mem_dest_tmp, mem_src_tmp, 10), in ZTEST()
580 zassert_equal(memcmp(mem_dest_tmp, mem_src_tmp, 10), in ZTEST()
588 zassert_equal(memcpy(mem_dest_tmp, mem_src_tmp, 10), in ZTEST()
590 zassert_equal(memcmp(mem_dest_tmp, mem_src_tmp, 10), in ZTEST()
600 zassert_not_equal(memcmp(mem_dest_tmp, mem_src_tmp, 10), in ZTEST()
637 char str1[10] = "aabbcc", ncat[10] = "ddee"; in ZTEST()
679 * when base is 10, [-2147483648..2147483647]
681 * when base is 10,
707 ret = strtol(buf1, NULL, 10); in ZTEST()
708 zassert_equal(ret, 10379, "strtol base = 10 failed"); in ZTEST()
709 ret = strtol(buf2, NULL, 10); in ZTEST()
710 zassert_equal(ret, -10379, "strtol base = 10 failed"); in ZTEST()
720 zassert_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
721 ret = strtol(buf8, NULL, 10); in ZTEST()
722 zassert_not_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
723 ret = strtol(buf9, NULL, 10); in ZTEST()
724 zassert_not_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
725 ret = strtol(buf10, NULL, 10); in ZTEST()
726 zassert_not_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
728 ret = strtol(str_normal, &stop, 10); in ZTEST()
729 zassert_equal(ret, -1011, "strtol base = 10 failed"); in ZTEST()
742 ret = strtol(border1, NULL, 10); in ZTEST()
743 zassert_equal(ret, LONG_MIN, "strtol base = 10 failed"); in ZTEST()
744 ret = strtol(border2, NULL, 10); in ZTEST()
745 zassert_equal(ret, LONG_MAX, "strtol base = 10 failed"); in ZTEST()
746 ret = strtol(border3, NULL, 10); in ZTEST()
747 zassert_equal(ret, 9223372036854775806, "strtol base = 10 failed"); in ZTEST()
748 ret = strtol(border4, NULL, 10); in ZTEST()
749 zassert_equal(ret, LONG_MAX, "strtol base = 10 failed"); in ZTEST()
756 ret = strtol(border1, NULL, 10); in ZTEST()
757 zassert_equal(ret, LONG_MIN, "strtol base = 10 failed"); in ZTEST()
758 ret = strtol(border2, NULL, 10); in ZTEST()
759 zassert_equal(ret, LONG_MAX, "strtol base = 10 failed"); in ZTEST()
760 ret = strtol(border3, NULL, 10); in ZTEST()
761 zassert_equal(ret, 2147483646, "strtol base = 10 failed"); in ZTEST()
762 ret = strtol(border4, NULL, 10); in ZTEST()
763 zassert_equal(ret, LONG_MAX, "strtol base = 10 failed"); in ZTEST()
794 ret = strtoul(buf1, NULL, 10); in ZTEST()
795 zassert_equal(ret, 10379, "strtol base = 10 failed"); in ZTEST()
796 ret = strtoul(buf2, NULL, 10); in ZTEST()
797 zassert_equal(ret, -10379, "strtol base = 10 failed"); in ZTEST()
807 zassert_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
808 ret = strtoul(buf8, NULL, 10); in ZTEST()
809 zassert_not_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
810 ret = strtoul(buf9, NULL, 10); in ZTEST()
811 zassert_not_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
812 ret = strtoul(buf10, NULL, 10); in ZTEST()
813 zassert_not_equal(ret, 1037, "strtol base = 10 failed"); in ZTEST()
815 ret = strtoul(str_normal, &stop, 10); in ZTEST()
816 zassert_equal(ret, -1011, "strtol base = 10 failed"); in ZTEST()
828 ret = strtoul(border1, NULL, 10); in ZTEST()
829 zassert_equal(ret, ULONG_MAX, "strtol base = 10 failed"); in ZTEST()
830 ret = strtoul(border2, NULL, 10); in ZTEST()
831 zassert_equal(ret, ULONG_MAX, "strtol base = 10 failed"); in ZTEST()
832 ret = strtoul(border3, NULL, 10); in ZTEST()
833 zassert_equal(ret, ULONG_MAX, "strtol base = 10 failed"); in ZTEST()
840 ret = strtoul(border1, NULL, 10); in ZTEST()
841 zassert_equal(ret, ULONG_MAX, "strtol base = 10 failed"); in ZTEST()
842 ret = strtoul(border2, NULL, 10); in ZTEST()
843 zassert_equal(ret, ULONG_MAX, "strtol base = 10 failed"); in ZTEST()
844 ret = strtoul(border3, NULL, 10); in ZTEST()
845 zassert_equal(ret, ULONG_MAX, "strtol base = 10 failed"); in ZTEST()
876 ret = strtoll(buf1, NULL, 10); in test_strtoll()
877 zassert_equal(ret, 10379, "strtoll base = 10 failed"); in test_strtoll()
878 ret = strtoll(buf2, NULL, 10); in test_strtoll()
879 zassert_equal(ret, -10379, "strtoll base = 10 failed"); in test_strtoll()
889 zassert_equal(ret, 1037, "strtoll base = 10 failed"); in test_strtoll()
890 ret = strtoll(buf8, NULL, 10); in test_strtoll()
891 zassert_not_equal(ret, 1037, "strtoll base = 10 failed"); in test_strtoll()
892 ret = strtoll(buf9, NULL, 10); in test_strtoll()
893 zassert_not_equal(ret, 1037, "strtoll base = 10 failed"); in test_strtoll()
894 ret = strtoll(buf10, NULL, 10); in test_strtoll()
895 zassert_not_equal(ret, 1037, "strtoll base = 10 failed"); in test_strtoll()
897 ret = strtoll(str_normal, &stop, 10); in test_strtoll()
898 zassert_equal(ret, -1011, "strtoll base = 10 failed"); in test_strtoll()
913 ret = strtoll(border1, NULL, 10); in test_strtoll()
914 zassert_equal(ret, LLONG_MIN, "strtoll base = 10 failed"); in test_strtoll()
915 ret = strtoll(border2, NULL, 10); in test_strtoll()
916 zassert_equal(ret, LLONG_MAX, "strtoll base = 10 failed"); in test_strtoll()
917 ret = strtoll(border3, NULL, 10); in test_strtoll()
918 zassert_equal(ret, 9223372036854775806, "strtoll base = 10 failed"); in test_strtoll()
919 ret = strtoll(border4, NULL, 10); in test_strtoll()
920 zassert_equal(ret, LLONG_MAX, "strtoll base = 10 failed"); in test_strtoll()
923 ret = strtoull(border6, NULL, 10); in test_strtoll()
924 zassert_equal(errno, ERANGE, "strtoull base = 10 failed, %s != %lld", border6, ret); in test_strtoll()
925 ret = strtoull(border7, NULL, 10); in test_strtoll()
926 zassert_equal(errno, ERANGE, "strtoull base = 10 failed, %s != %lld", border7, ret); in test_strtoll()
956 ret = strtoull(buf1, NULL, 10); in test_strtoull()
957 zassert_equal(ret, 10379, "strtoull base = 10 failed"); in test_strtoull()
958 ret = strtoull(buf2, NULL, 10); in test_strtoull()
959 zassert_equal(ret, -10379, "strtoull base = 10 failed"); in test_strtoull()
969 zassert_equal(ret, 1037, "strtoull base = 10 failed"); in test_strtoull()
970 ret = strtoull(buf8, NULL, 10); in test_strtoull()
971 zassert_not_equal(ret, 1037, "strtoull base = 10 failed"); in test_strtoull()
972 ret = strtoull(buf9, NULL, 10); in test_strtoull()
973 zassert_not_equal(ret, 1037, "strtoull base = 10 failed"); in test_strtoull()
974 ret = strtoull(buf10, NULL, 10); in test_strtoull()
975 zassert_not_equal(ret, 1037, "strtoull base = 10 failed"); in test_strtoull()
977 ret = strtoull(str_normal, &stop, 10); in test_strtoull()
978 zassert_equal(ret, -1011, "strtoull base = 10 failed"); in test_strtoull()
993 ret = strtoull(border1, NULL, 10); in test_strtoull()
994 zassert_equal(ret, ULLONG_MAX, "strtoull base = 10 failed"); in test_strtoull()
995 ret = strtoull(border2, NULL, 10); in test_strtoull()
996 zassert_equal(ret, ULLONG_MAX, "strtoull base = 10 failed"); in test_strtoull()
997 ret = strtoull(border3, NULL, 10); in test_strtoull()
998 zassert_equal(ret, ULLONG_MAX, "strtoull base = 10 failed"); in test_strtoull()
1001 ret = strtoull(border5, NULL, 10); in test_strtoull()
1002 zassert_equal(errno, ERANGE, "strtoull base = 10 failed, %s != %lld", border5, ret); in test_strtoull()
1003 ret = strtoull(border6, NULL, 10); in test_strtoull()
1004 zassert_equal(errno, ERANGE, "strtoull base = 10 failed, %s != %lld", border6, ret); in test_strtoull()
1103 .tm_sec = 10, /* Seconds */ in ZTEST()
1113 zassert_equal(strncmp("Fri Jun 1 14:30:10 2024\n", buf, sizeof(buf)), 0); in ZTEST()
1116 zassert_equal(strncmp("Fri Jun 1 14:30:10 2024\n", asctime(&tp), sizeof(buf)), 0); in ZTEST()
1208 srand(10); in ZTEST()
1210 zassert_equal(a, 297746555, "srand with seed 10 failed"); in ZTEST()
1256 srand(10); in ZTEST()
1258 zassert_equal(a, 297746555, "srand with seed 10 failed"); in ZTEST()
1259 srand(10); in ZTEST()
1261 zassert_equal(b, 297746555, "srand with seed 10 failed (2nd)"); in ZTEST()
1262 srand(10); in ZTEST()
1264 zassert_equal(c, 297746555, "srand with seed 10 failed (3rd)"); in ZTEST()
1334 k_sleep(K_MSEC(10)); in ZTEST()