aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-14 20:40:43 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-14 20:45:13 +0300
commite4850e5b2c67c2c7f4b925b4eaea0554d67efb91 (patch)
treec8e19d6f50530bae22af7a03802bd915772ae5a1
parent202af117b434e415bbe5f6f4d687b0d76258dbb0 (diff)
downloadlibmicrohttpd-e4850e5b2c67c2c7f4b925b4eaea0554d67efb91.tar.gz
libmicrohttpd-e4850e5b2c67c2c7f4b925b4eaea0554d67efb91.zip
test_str: made test compatible with non-VLA compilers
-rw-r--r--src/microhttpd/test_str.c144
1 files changed, 72 insertions, 72 deletions
diff --git a/src/microhttpd/test_str.c b/src/microhttpd/test_str.c
index f2f4d32c..16b63bd6 100644
--- a/src/microhttpd/test_str.c
+++ b/src/microhttpd/test_str.c
@@ -513,8 +513,8 @@ check_eq_strings (void)
513{ 513{
514 size_t t_failed = 0; 514 size_t t_failed = 0;
515 size_t i, j; 515 size_t i, j;
516 static const size_t n_checks = sizeof(eq_strings) / sizeof(eq_strings[0]); 516 int c_failed[sizeof(eq_strings) / sizeof(eq_strings[0])];
517 int c_failed[n_checks]; 517 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
518 518
519 memset (c_failed, 0, sizeof(c_failed)); 519 memset (c_failed, 0, sizeof(c_failed));
520 520
@@ -560,8 +560,8 @@ check_neq_strings (void)
560{ 560{
561 size_t t_failed = 0; 561 size_t t_failed = 0;
562 size_t i, j; 562 size_t i, j;
563 static const size_t n_checks = sizeof(neq_strings) / sizeof(neq_strings[0]); 563 int c_failed[sizeof(neq_strings) / sizeof(neq_strings[0])];
564 int c_failed[n_checks]; 564 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
565 565
566 memset (c_failed, 0, sizeof(c_failed)); 566 memset (c_failed, 0, sizeof(c_failed));
567 567
@@ -607,8 +607,8 @@ check_eq_strings_n (void)
607{ 607{
608 size_t t_failed = 0; 608 size_t t_failed = 0;
609 size_t i, j, k; 609 size_t i, j, k;
610 static const size_t n_checks = sizeof(eq_strings) / sizeof(eq_strings[0]); 610 int c_failed[sizeof(eq_strings) / sizeof(eq_strings[0])];
611 int c_failed[n_checks]; 611 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
612 612
613 memset (c_failed, 0, sizeof(c_failed)); 613 memset (c_failed, 0, sizeof(c_failed));
614 614
@@ -660,8 +660,8 @@ check_neq_strings_n (void)
660{ 660{
661 size_t t_failed = 0; 661 size_t t_failed = 0;
662 size_t i, j, k; 662 size_t i, j, k;
663 static const size_t n_checks = sizeof(neq_strings) / sizeof(neq_strings[0]); 663 int c_failed[sizeof(neq_strings) / sizeof(neq_strings[0])];
664 int c_failed[n_checks]; 664 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
665 665
666 memset (c_failed, 0, sizeof(c_failed)); 666 memset (c_failed, 0, sizeof(c_failed));
667 667
@@ -1125,9 +1125,9 @@ check_str_to_uint64_valid (void)
1125{ 1125{
1126 size_t t_failed = 0; 1126 size_t t_failed = 0;
1127 size_t i, j; 1127 size_t i, j;
1128 static const size_t n_checks = sizeof(dstrs_w_values) 1128 int c_failed[sizeof(dstrs_w_values)
1129 / sizeof(dstrs_w_values[0]); 1129 / sizeof(dstrs_w_values[0])];
1130 int c_failed[n_checks]; 1130 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1131 1131
1132 memset (c_failed, 0, sizeof(c_failed)); 1132 memset (c_failed, 0, sizeof(c_failed));
1133 1133
@@ -1191,8 +1191,8 @@ check_str_to_uint64_valid (void)
1191static size_t 1191static size_t
1192check_str_to_uint64_all_chars (void) 1192check_str_to_uint64_all_chars (void)
1193{ 1193{
1194 static const size_t n_checks = 256; /* from 0 to 255 */ 1194 int c_failed[256]; /* from 0 to 255 */
1195 int c_failed[n_checks]; 1195 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1196 size_t t_failed = 0; 1196 size_t t_failed = 0;
1197 size_t j; 1197 size_t j;
1198 1198
@@ -1260,8 +1260,8 @@ check_str_to_uint64_overflow (void)
1260{ 1260{
1261 size_t t_failed = 0; 1261 size_t t_failed = 0;
1262 size_t i, j; 1262 size_t i, j;
1263 static const size_t n_checks = sizeof(str_ovflw) / sizeof(str_ovflw[0]); 1263 int c_failed[sizeof(str_ovflw) / sizeof(str_ovflw[0])];
1264 int c_failed[n_checks]; 1264 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1265 1265
1266 memset (c_failed, 0, sizeof(c_failed)); 1266 memset (c_failed, 0, sizeof(c_failed));
1267 1267
@@ -1318,8 +1318,8 @@ check_str_to_uint64_no_val (void)
1318{ 1318{
1319 size_t t_failed = 0; 1319 size_t t_failed = 0;
1320 size_t i, j; 1320 size_t i, j;
1321 static const size_t n_checks = sizeof(str_no_num) / sizeof(str_no_num[0]); 1321 int c_failed[sizeof(str_no_num) / sizeof(str_no_num[0])];
1322 int c_failed[n_checks]; 1322 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1323 1323
1324 memset (c_failed, 0, sizeof(c_failed)); 1324 memset (c_failed, 0, sizeof(c_failed));
1325 1325
@@ -1376,9 +1376,9 @@ check_str_to_uint64_n_valid (void)
1376{ 1376{
1377 size_t t_failed = 0; 1377 size_t t_failed = 0;
1378 size_t i, j; 1378 size_t i, j;
1379 static const size_t n_checks = sizeof(dstrs_w_values) 1379 int c_failed[sizeof(dstrs_w_values)
1380 / sizeof(dstrs_w_values[0]); 1380 / sizeof(dstrs_w_values[0])];
1381 int c_failed[n_checks]; 1381 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1382 1382
1383 memset (c_failed, 0, sizeof(c_failed)); 1383 memset (c_failed, 0, sizeof(c_failed));
1384 1384
@@ -1446,8 +1446,8 @@ check_str_to_uint64_n_valid (void)
1446static size_t 1446static size_t
1447check_str_to_uint64_n_all_chars (void) 1447check_str_to_uint64_n_all_chars (void)
1448{ 1448{
1449 static const size_t n_checks = 256; /* from 0 to 255 */ 1449 int c_failed[256]; /* from 0 to 255 */
1450 int c_failed[n_checks]; 1450 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1451 size_t t_failed = 0; 1451 size_t t_failed = 0;
1452 size_t j; 1452 size_t j;
1453 1453
@@ -1525,8 +1525,8 @@ check_str_to_uint64_n_overflow (void)
1525{ 1525{
1526 size_t t_failed = 0; 1526 size_t t_failed = 0;
1527 size_t i, j; 1527 size_t i, j;
1528 static const size_t n_checks = sizeof(str_ovflw) / sizeof(str_ovflw[0]); 1528 int c_failed[sizeof(str_ovflw) / sizeof(str_ovflw[0])];
1529 int c_failed[n_checks]; 1529 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1530 1530
1531 memset (c_failed, 0, sizeof(c_failed)); 1531 memset (c_failed, 0, sizeof(c_failed));
1532 1532
@@ -1594,8 +1594,8 @@ check_str_to_uint64_n_no_val (void)
1594{ 1594{
1595 size_t t_failed = 0; 1595 size_t t_failed = 0;
1596 size_t i, j; 1596 size_t i, j;
1597 static const size_t n_checks = sizeof(str_no_num) / sizeof(str_no_num[0]); 1597 int c_failed[sizeof(str_no_num) / sizeof(str_no_num[0])];
1598 int c_failed[n_checks]; 1598 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1599 1599
1600 memset (c_failed, 0, sizeof(c_failed)); 1600 memset (c_failed, 0, sizeof(c_failed));
1601 1601
@@ -1662,9 +1662,9 @@ check_strx_to_uint32_valid (void)
1662{ 1662{
1663 size_t t_failed = 0; 1663 size_t t_failed = 0;
1664 size_t i, j; 1664 size_t i, j;
1665 static const size_t n_checks = sizeof(xdstrs_w_values) 1665 int c_failed[sizeof(xdstrs_w_values)
1666 / sizeof(xdstrs_w_values[0]); 1666 / sizeof(xdstrs_w_values[0])];
1667 int c_failed[n_checks]; 1667 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1668 1668
1669 memset (c_failed, 0, sizeof(c_failed)); 1669 memset (c_failed, 0, sizeof(c_failed));
1670 1670
@@ -1733,8 +1733,8 @@ check_strx_to_uint32_valid (void)
1733static size_t 1733static size_t
1734check_strx_to_uint32_all_chars (void) 1734check_strx_to_uint32_all_chars (void)
1735{ 1735{
1736 static const size_t n_checks = 256; /* from 0 to 255 */ 1736 int c_failed[256]; /* from 0 to 255 */
1737 int c_failed[n_checks]; 1737 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1738 size_t t_failed = 0; 1738 size_t t_failed = 0;
1739 size_t j; 1739 size_t j;
1740 1740
@@ -1808,10 +1808,10 @@ check_strx_to_uint32_overflow (void)
1808 size_t t_failed = 0; 1808 size_t t_failed = 0;
1809 size_t i, j; 1809 size_t i, j;
1810 static const size_t n_checks1 = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]); 1810 static const size_t n_checks1 = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]);
1811 static const size_t n_checks = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]) 1811 int c_failed[sizeof(strx_ovflw) / sizeof(strx_ovflw[0])
1812 + sizeof(xdstrs_w_values) 1812 + sizeof(xdstrs_w_values)
1813 / sizeof(xdstrs_w_values[0]); 1813 / sizeof(xdstrs_w_values[0])];
1814 int c_failed[n_checks]; 1814 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1815 1815
1816 memset (c_failed, 0, sizeof(c_failed)); 1816 memset (c_failed, 0, sizeof(c_failed));
1817 1817
@@ -1883,8 +1883,8 @@ check_strx_to_uint32_no_val (void)
1883{ 1883{
1884 size_t t_failed = 0; 1884 size_t t_failed = 0;
1885 size_t i, j; 1885 size_t i, j;
1886 static const size_t n_checks = sizeof(str_no_num) / sizeof(str_no_num[0]); 1886 int c_failed[sizeof(str_no_num) / sizeof(str_no_num[0])];
1887 int c_failed[n_checks]; 1887 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1888 1888
1889 memset (c_failed, 0, sizeof(c_failed)); 1889 memset (c_failed, 0, sizeof(c_failed));
1890 1890
@@ -1942,9 +1942,9 @@ check_strx_to_uint32_n_valid (void)
1942{ 1942{
1943 size_t t_failed = 0; 1943 size_t t_failed = 0;
1944 size_t i, j; 1944 size_t i, j;
1945 static const size_t n_checks = sizeof(xdstrs_w_values) 1945 int c_failed[sizeof(xdstrs_w_values)
1946 / sizeof(xdstrs_w_values[0]); 1946 / sizeof(xdstrs_w_values[0])];
1947 int c_failed[n_checks]; 1947 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
1948 1948
1949 memset (c_failed, 0, sizeof(c_failed)); 1949 memset (c_failed, 0, sizeof(c_failed));
1950 1950
@@ -2017,8 +2017,8 @@ check_strx_to_uint32_n_valid (void)
2017static size_t 2017static size_t
2018check_strx_to_uint32_n_all_chars (void) 2018check_strx_to_uint32_n_all_chars (void)
2019{ 2019{
2020 static const size_t n_checks = 256; /* from 0 to 255 */ 2020 int c_failed[256]; /* from 0 to 255 */
2021 int c_failed[n_checks]; 2021 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2022 size_t t_failed = 0; 2022 size_t t_failed = 0;
2023 size_t j; 2023 size_t j;
2024 2024
@@ -2102,10 +2102,10 @@ check_strx_to_uint32_n_overflow (void)
2102 size_t t_failed = 0; 2102 size_t t_failed = 0;
2103 size_t i, j; 2103 size_t i, j;
2104 static const size_t n_checks1 = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]); 2104 static const size_t n_checks1 = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]);
2105 static const size_t n_checks = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]) 2105 int c_failed[sizeof(strx_ovflw) / sizeof(strx_ovflw[0])
2106 + sizeof(xdstrs_w_values) 2106 + sizeof(xdstrs_w_values)
2107 / sizeof(xdstrs_w_values[0]); 2107 / sizeof(xdstrs_w_values[0])];
2108 int c_failed[n_checks]; 2108 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2109 2109
2110 memset (c_failed, 0, sizeof(c_failed)); 2110 memset (c_failed, 0, sizeof(c_failed));
2111 2111
@@ -2203,8 +2203,8 @@ check_strx_to_uint32_n_no_val (void)
2203{ 2203{
2204 size_t t_failed = 0; 2204 size_t t_failed = 0;
2205 size_t i, j; 2205 size_t i, j;
2206 static const size_t n_checks = sizeof(str_no_num) / sizeof(str_no_num[0]); 2206 int c_failed[sizeof(str_no_num) / sizeof(str_no_num[0])];
2207 int c_failed[n_checks]; 2207 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2208 2208
2209 memset (c_failed, 0, sizeof(c_failed)); 2209 memset (c_failed, 0, sizeof(c_failed));
2210 2210
@@ -2272,9 +2272,9 @@ check_strx_to_uint64_valid (void)
2272{ 2272{
2273 size_t t_failed = 0; 2273 size_t t_failed = 0;
2274 size_t i, j; 2274 size_t i, j;
2275 static const size_t n_checks = sizeof(xdstrs_w_values) 2275 int c_failed[sizeof(xdstrs_w_values)
2276 / sizeof(xdstrs_w_values[0]); 2276 / sizeof(xdstrs_w_values[0])];
2277 int c_failed[n_checks]; 2277 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2278 2278
2279 memset (c_failed, 0, sizeof(c_failed)); 2279 memset (c_failed, 0, sizeof(c_failed));
2280 2280
@@ -2339,8 +2339,8 @@ check_strx_to_uint64_valid (void)
2339static size_t 2339static size_t
2340check_strx_to_uint64_all_chars (void) 2340check_strx_to_uint64_all_chars (void)
2341{ 2341{
2342 static const size_t n_checks = 256; /* from 0 to 255 */ 2342 int c_failed[256]; /* from 0 to 255 */
2343 int c_failed[n_checks]; 2343 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2344 size_t t_failed = 0; 2344 size_t t_failed = 0;
2345 size_t j; 2345 size_t j;
2346 2346
@@ -2412,8 +2412,8 @@ check_strx_to_uint64_overflow (void)
2412{ 2412{
2413 size_t t_failed = 0; 2413 size_t t_failed = 0;
2414 size_t i, j; 2414 size_t i, j;
2415 static const size_t n_checks = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]); 2415 int c_failed[sizeof(strx_ovflw) / sizeof(strx_ovflw[0])];
2416 int c_failed[n_checks]; 2416 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2417 2417
2418 memset (c_failed, 0, sizeof(c_failed)); 2418 memset (c_failed, 0, sizeof(c_failed));
2419 2419
@@ -2470,8 +2470,8 @@ check_strx_to_uint64_no_val (void)
2470{ 2470{
2471 size_t t_failed = 0; 2471 size_t t_failed = 0;
2472 size_t i, j; 2472 size_t i, j;
2473 static const size_t n_checks = sizeof(str_no_num) / sizeof(str_no_num[0]); 2473 int c_failed[sizeof(str_no_num) / sizeof(str_no_num[0])];
2474 int c_failed[n_checks]; 2474 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2475 2475
2476 memset (c_failed, 0, sizeof(c_failed)); 2476 memset (c_failed, 0, sizeof(c_failed));
2477 2477
@@ -2599,8 +2599,8 @@ check_strx_to_uint64_n_valid (void)
2599static size_t 2599static size_t
2600check_strx_to_uint64_n_all_chars (void) 2600check_strx_to_uint64_n_all_chars (void)
2601{ 2601{
2602 static const size_t n_checks = 256; /* from 0 to 255 */ 2602 int c_failed[256]; /* from 0 to 255 */
2603 int c_failed[n_checks]; 2603 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2604 size_t t_failed = 0; 2604 size_t t_failed = 0;
2605 size_t j; 2605 size_t j;
2606 2606
@@ -2683,8 +2683,8 @@ check_strx_to_uint64_n_overflow (void)
2683{ 2683{
2684 size_t t_failed = 0; 2684 size_t t_failed = 0;
2685 size_t i, j; 2685 size_t i, j;
2686 static const size_t n_checks = sizeof(strx_ovflw) / sizeof(strx_ovflw[0]); 2686 int c_failed[sizeof(strx_ovflw) / sizeof(strx_ovflw[0])];
2687 int c_failed[n_checks]; 2687 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2688 2688
2689 memset (c_failed, 0, sizeof(c_failed)); 2689 memset (c_failed, 0, sizeof(c_failed));
2690 2690
@@ -2753,8 +2753,8 @@ check_strx_to_uint64_n_no_val (void)
2753{ 2753{
2754 size_t t_failed = 0; 2754 size_t t_failed = 0;
2755 size_t i, j; 2755 size_t i, j;
2756 static const size_t n_checks = sizeof(str_no_num) / sizeof(str_no_num[0]); 2756 int c_failed[sizeof(str_no_num) / sizeof(str_no_num[0])];
2757 int c_failed[n_checks]; 2757 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
2758 2758
2759 memset (c_failed, 0, sizeof(c_failed)); 2759 memset (c_failed, 0, sizeof(c_failed));
2760 2760
@@ -3173,9 +3173,9 @@ check_str_from_uint16 (void)
3173 "-@=sd#+&(pdiren456qwe#@C3S!DAS45AOIPUQWESAdFzxcv1s*()&#$%34`" 3173 "-@=sd#+&(pdiren456qwe#@C3S!DAS45AOIPUQWESAdFzxcv1s*()&#$%34`"
3174 "32452d098poiden45SADFFDA3S4D3SDFdfgsdfgsSADFzxdvs$*()&#2342`" 3174 "32452d098poiden45SADFFDA3S4D3SDFdfgsdfgsSADFzxdvs$*()&#2342`"
3175 "adsf##$$@&*^%*^&56qwe#3C@S!DAScFAOIP$#%#$Ad1zs3v1$*()&#1228`"; 3175 "adsf##$$@&*^%*^&56qwe#3C@S!DAScFAOIP$#%#$Ad1zs3v1$*()&#1228`";
3176 static const size_t n_checks = sizeof(dstrs_w_values) 3176 int c_failed[sizeof(dstrs_w_values)
3177 / sizeof(dstrs_w_values[0]); 3177 / sizeof(dstrs_w_values[0])];
3178 int c_failed[n_checks]; 3178 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
3179 3179
3180 memset (c_failed, 0, sizeof(c_failed)); 3180 memset (c_failed, 0, sizeof(c_failed));
3181 3181
@@ -3298,9 +3298,9 @@ check_str_from_uint64 (void)
3298 "-@=sd#+&(pdirenDSFGSe#@C&S!DAS*!AOIPUQWESAdFzxcvSs*()&#$%KH`" 3298 "-@=sd#+&(pdirenDSFGSe#@C&S!DAS*!AOIPUQWESAdFzxcvSs*()&#$%KH`"
3299 "32452d098poiden45SADFFDA3S4D3SDFdfgsdfgsSADFzxdvs$*()&#2342`" 3299 "32452d098poiden45SADFFDA3S4D3SDFdfgsdfgsSADFzxdvs$*()&#2342`"
3300 "adsf##$$@&*^%*^&56qwe#3C@S!DAScFAOIP$#%#$Ad1zs3v1$*()&#1228`"; 3300 "adsf##$$@&*^%*^&56qwe#3C@S!DAScFAOIP$#%#$Ad1zs3v1$*()&#1228`";
3301 static const size_t n_checks = sizeof(dstrs_w_values) 3301 int c_failed[sizeof(dstrs_w_values)
3302 / sizeof(dstrs_w_values[0]); 3302 / sizeof(dstrs_w_values[0])];
3303 int c_failed[n_checks]; 3303 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
3304 3304
3305 memset (c_failed, 0, sizeof(c_failed)); 3305 memset (c_failed, 0, sizeof(c_failed));
3306 3306
@@ -3420,9 +3420,9 @@ check_strx_from_uint32 (void)
3420 "jrlkjssfhjfvrjntJHLJ$@%$#adsfdkj;k$##$%#$%FGDF%$#^FDFG%$#$D`" 3420 "jrlkjssfhjfvrjntJHLJ$@%$#adsfdkj;k$##$%#$%FGDF%$#^FDFG%$#$D`"
3421 ";skjdhjflsdkjhdjfalskdjhdfalkjdhf$%##%$$#%FSDGFSDDGDFSSDSDF`" 3421 ";skjdhjflsdkjhdjfalskdjhdfalkjdhf$%##%$$#%FSDGFSDDGDFSSDSDF`"
3422 "#5#$%#$#$DFSFDDFSGSDFSDF354FDDSGFDFfdssfddfswqemn,.zxih,.sx`"; 3422 "#5#$%#$#$DFSFDDFSGSDFSDF354FDDSGFDFfdssfddfswqemn,.zxih,.sx`";
3423 static const size_t n_checks = sizeof(xdstrs_w_values) 3423 int c_failed[sizeof(xdstrs_w_values)
3424 / sizeof(xdstrs_w_values[0]); 3424 / sizeof(xdstrs_w_values[0])];
3425 int c_failed[n_checks]; 3425 static const size_t n_checks = sizeof(c_failed) / sizeof(c_failed[0]);
3426 3426
3427 memset (c_failed, 0, sizeof(c_failed)); 3427 memset (c_failed, 0, sizeof(c_failed));
3428 3428