Lines Matching refs:destination

806 		wchar_t destination[] = L"XXXXXXXXXXXXXXXX";  in test_wcscpy()  local
807 wchar_t* result = wcscpy(destination, source); in test_wcscpy()
808 if (result != destination) { in test_wcscpy()
810 "expected %p\n", source, result, destination); in test_wcscpy()
818 if (wcslen(destination) != 0) { in test_wcscpy()
821 wcslen(destination)); in test_wcscpy()
824 if (destination[0] != L'\0') { in test_wcscpy()
826 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
830 if (destination[1] != L'X') { in test_wcscpy()
832 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcscpy()
840 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcscpy() local
841 wchar_t* result = wcscpy(destination, source); in test_wcscpy()
842 if (result != destination) { in test_wcscpy()
844 "expected %p\n", source, result, destination); in test_wcscpy()
852 if (wcslen(destination) != 4) { in test_wcscpy()
855 wcslen(destination)); in test_wcscpy()
858 if (destination[0] != L't') { in test_wcscpy()
860 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
864 if (destination[1] != L'e') { in test_wcscpy()
866 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcscpy()
870 if (destination[2] != L's') { in test_wcscpy()
872 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcscpy()
876 if (destination[3] != L't') { in test_wcscpy()
878 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcscpy()
882 if (destination[4] != L'\0') { in test_wcscpy()
884 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcscpy()
888 if (destination[5] != L'X') { in test_wcscpy()
890 "destination[5]=%x, expected %x\n", source, destination[5], in test_wcscpy()
898 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcscpy() local
899 wchar_t* result = wcscpy(destination, source); in test_wcscpy()
900 if (result != destination) { in test_wcscpy()
902 "expected %p\n", source, result, destination); in test_wcscpy()
910 if (wcslen(destination) != 4) { in test_wcscpy()
913 wcslen(destination)); in test_wcscpy()
916 if (destination[0] != L't') { in test_wcscpy()
918 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
922 if (destination[1] != L'\xE4') { in test_wcscpy()
924 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcscpy()
928 if (destination[2] != L's') { in test_wcscpy()
930 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcscpy()
934 if (destination[3] != L't') { in test_wcscpy()
936 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcscpy()
940 if (destination[4] != L'\0') { in test_wcscpy()
942 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcscpy()
946 if (destination[5] != L'X') { in test_wcscpy()
948 "destination[5]=%x, expected %x\n", source, destination[5], in test_wcscpy()
956 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcscpy() local
957 wchar_t* result = wcscpy(destination, source); in test_wcscpy()
958 if (result != destination) { in test_wcscpy()
960 "expected %p\n", source, result, destination); in test_wcscpy()
968 if (wcslen(destination) != 2) { in test_wcscpy()
971 wcslen(destination)); in test_wcscpy()
974 if (destination[0] != L't') { in test_wcscpy()
976 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
980 if (destination[1] != L'e') { in test_wcscpy()
982 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcscpy()
986 if (destination[2] != L'\0') { in test_wcscpy()
988 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcscpy()
992 if (destination[3] != L'X') { in test_wcscpy()
994 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcscpy()
1002 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcscpy() local
1003 wchar_t* result = wcsncpy(destination, source, 0); in test_wcscpy()
1004 if (result != destination) { in test_wcscpy()
1006 "expected %p\n", source, result, destination); in test_wcscpy()
1014 if (destination[0] != L'X') { in test_wcscpy()
1016 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
1024 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcscpy() local
1025 wchar_t* result = wcsncpy(destination, source, 2); in test_wcscpy()
1026 if (result != destination) { in test_wcscpy()
1028 "expected %p\n", source, result, destination); in test_wcscpy()
1036 if (destination[0] != L't') { in test_wcscpy()
1038 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
1042 if (destination[1] != L'\xE4') { in test_wcscpy()
1044 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcscpy()
1048 if (destination[2] != L'X') { in test_wcscpy()
1050 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcscpy()
1058 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcscpy() local
1059 wchar_t* result = wcsncpy(destination, source, 4); in test_wcscpy()
1060 if (result != destination) { in test_wcscpy()
1062 "expected %p\n", source, result, destination); in test_wcscpy()
1070 if (destination[0] != L't') { in test_wcscpy()
1072 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
1076 if (destination[1] != L'\xE4') { in test_wcscpy()
1078 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcscpy()
1082 if (destination[2] != L's') { in test_wcscpy()
1084 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcscpy()
1088 if (destination[3] != L't') { in test_wcscpy()
1090 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcscpy()
1094 if (destination[4] != L'X') { in test_wcscpy()
1096 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcscpy()
1104 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcscpy() local
1105 wchar_t* result = wcsncpy(destination, source, 8); in test_wcscpy()
1106 if (result != destination) { in test_wcscpy()
1108 "expected %p\n", source, result, destination); in test_wcscpy()
1116 if (wcslen(destination) != 4) { in test_wcscpy()
1119 wcslen(destination)); in test_wcscpy()
1122 if (destination[0] != L't') { in test_wcscpy()
1124 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcscpy()
1128 if (destination[1] != L'\xE4') { in test_wcscpy()
1130 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcscpy()
1134 if (destination[2] != L's') { in test_wcscpy()
1136 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcscpy()
1140 if (destination[3] != L't') { in test_wcscpy()
1142 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcscpy()
1146 if (destination[4] != L'\0') { in test_wcscpy()
1148 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcscpy()
1152 if (destination[5] != L'\0') { in test_wcscpy()
1154 "destination[5]=%x, expected %x\n", source, destination[5], in test_wcscpy()
1158 if (destination[6] != L'\0') { in test_wcscpy()
1160 "destination[6]=%x, expected %x\n", source, destination[6], in test_wcscpy()
1164 if (destination[7] != L'\0') { in test_wcscpy()
1166 "destination[7]=%x, expected %x\n", source, destination[7], in test_wcscpy()
1170 if (destination[8] != L'X') { in test_wcscpy()
1172 "destination[8]=%x, expected %x\n", source, destination[8], in test_wcscpy()
1198 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1199 wchar_t* result = wcpcpy(destination, source); in test_wcpcpy()
1200 if (result != destination) { in test_wcpcpy()
1202 "expected %p\n", source, result, destination); in test_wcpcpy()
1210 if (wcslen(destination) != 0) { in test_wcpcpy()
1213 wcslen(destination)); in test_wcpcpy()
1216 if (destination[0] != L'\0') { in test_wcpcpy()
1218 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1222 if (destination[1] != L'X') { in test_wcpcpy()
1224 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcpcpy()
1232 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1233 wchar_t* result = wcpcpy(destination, source); in test_wcpcpy()
1234 if (result != destination + 4) { in test_wcpcpy()
1236 "expected %p\n", source, result, destination + 4); in test_wcpcpy()
1244 if (wcslen(destination) != 4) { in test_wcpcpy()
1247 wcslen(destination)); in test_wcpcpy()
1250 if (destination[0] != L't') { in test_wcpcpy()
1252 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1256 if (destination[1] != L'e') { in test_wcpcpy()
1258 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcpcpy()
1262 if (destination[2] != L's') { in test_wcpcpy()
1264 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcpcpy()
1268 if (destination[3] != L't') { in test_wcpcpy()
1270 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcpcpy()
1274 if (destination[4] != L'\0') { in test_wcpcpy()
1276 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcpcpy()
1280 if (destination[5] != L'X') { in test_wcpcpy()
1282 "destination[5]=%x, expected %x\n", source, destination[5], in test_wcpcpy()
1290 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1291 wchar_t* result = wcpcpy(destination, source); in test_wcpcpy()
1292 if (result != destination + 4) { in test_wcpcpy()
1294 "expected %p\n", source, result, destination + 4); in test_wcpcpy()
1302 if (wcslen(destination) != 4) { in test_wcpcpy()
1305 wcslen(destination)); in test_wcpcpy()
1308 if (destination[0] != L't') { in test_wcpcpy()
1310 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1314 if (destination[1] != L'\xE4') { in test_wcpcpy()
1316 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcpcpy()
1320 if (destination[2] != L's') { in test_wcpcpy()
1322 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcpcpy()
1326 if (destination[3] != L't') { in test_wcpcpy()
1328 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcpcpy()
1332 if (destination[4] != L'\0') { in test_wcpcpy()
1334 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcpcpy()
1338 if (destination[5] != L'X') { in test_wcpcpy()
1340 "destination[5]=%x, expected %x\n", source, destination[5], in test_wcpcpy()
1348 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1349 wchar_t* result = wcpcpy(destination, source); in test_wcpcpy()
1350 if (result != destination + 2) { in test_wcpcpy()
1352 "expected %p\n", source, result, destination + 2); in test_wcpcpy()
1360 if (wcslen(destination) != 2) { in test_wcpcpy()
1363 wcslen(destination)); in test_wcpcpy()
1366 if (destination[0] != L't') { in test_wcpcpy()
1368 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1372 if (destination[1] != L'e') { in test_wcpcpy()
1374 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcpcpy()
1378 if (destination[2] != L'\0') { in test_wcpcpy()
1380 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcpcpy()
1384 if (destination[3] != L'X') { in test_wcpcpy()
1386 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcpcpy()
1394 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1395 wchar_t* result = wcpncpy(destination, source, 0); in test_wcpcpy()
1396 if (result != destination) { in test_wcpcpy()
1398 "expected %p\n", source, result, destination); in test_wcpcpy()
1406 if (destination[0] != L'X') { in test_wcpcpy()
1408 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1416 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1417 wchar_t* result = wcpncpy(destination, source, 2); in test_wcpcpy()
1418 if (result != destination + 2) { in test_wcpcpy()
1420 "expected %p\n", source, result, destination + 2); in test_wcpcpy()
1428 if (destination[0] != L't') { in test_wcpcpy()
1430 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1434 if (destination[1] != L'\xE4') { in test_wcpcpy()
1436 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcpcpy()
1440 if (destination[2] != L'X') { in test_wcpcpy()
1442 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcpcpy()
1450 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1451 wchar_t* result = wcpncpy(destination, source, 4); in test_wcpcpy()
1452 if (result != destination + 4) { in test_wcpcpy()
1454 "expected %p\n", source, result, destination + 4); in test_wcpcpy()
1462 if (destination[0] != L't') { in test_wcpcpy()
1464 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1468 if (destination[1] != L'\xE4') { in test_wcpcpy()
1470 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcpcpy()
1474 if (destination[2] != L's') { in test_wcpcpy()
1476 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcpcpy()
1480 if (destination[3] != L't') { in test_wcpcpy()
1482 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcpcpy()
1486 if (destination[4] != L'X') { in test_wcpcpy()
1488 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcpcpy()
1496 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcpcpy() local
1497 wchar_t* result = wcpncpy(destination, source, 8); in test_wcpcpy()
1498 if (result != destination + 4) { in test_wcpcpy()
1500 "expected %p\n", source, result, destination + 4); in test_wcpcpy()
1508 if (wcslen(destination) != 4) { in test_wcpcpy()
1511 wcslen(destination)); in test_wcpcpy()
1514 if (destination[0] != L't') { in test_wcpcpy()
1516 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcpcpy()
1520 if (destination[1] != L'\xE4') { in test_wcpcpy()
1522 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcpcpy()
1526 if (destination[2] != L's') { in test_wcpcpy()
1528 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcpcpy()
1532 if (destination[3] != L't') { in test_wcpcpy()
1534 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcpcpy()
1538 if (destination[4] != L'\0') { in test_wcpcpy()
1540 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcpcpy()
1544 if (destination[5] != L'\0') { in test_wcpcpy()
1546 "destination[5]=%x, expected %x\n", source, destination[5], in test_wcpcpy()
1550 if (destination[6] != L'\0') { in test_wcpcpy()
1552 "destination[6]=%x, expected %x\n", source, destination[6], in test_wcpcpy()
1556 if (destination[7] != L'\0') { in test_wcpcpy()
1558 "destination[7]=%x, expected %x\n", source, destination[7], in test_wcpcpy()
1562 if (destination[8] != L'X') { in test_wcpcpy()
1564 "destination[8]=%x, expected %x\n", source, destination[8], in test_wcpcpy()
1587 wchar_t destination[] = L"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; in test_wcscat() local
1588 destination[0] = L'\0'; in test_wcscat()
1592 wcscpy(backup, destination); in test_wcscat()
1594 wchar_t* result = wcscat(destination, source); in test_wcscat()
1595 if (result != destination) { in test_wcscat()
1597 "expected %p\n", backup, source, result, destination); in test_wcscat()
1605 if (wcslen(destination) != 0) { in test_wcscat()
1608 wcslen(destination)); in test_wcscat()
1611 if (destination[0] != L'\0') { in test_wcscat()
1613 "expected %x\n", backup, source, destination[0], L'\0'); in test_wcscat()
1616 if (destination[1] != L'X') { in test_wcscat()
1618 "expected %x\n", backup, source, destination[1], L'X'); in test_wcscat()
1624 wcscpy(backup, destination); in test_wcscat()
1626 wchar_t* result = wcscat(destination, source); in test_wcscat()
1627 if (result != destination) { in test_wcscat()
1629 "expected %p\n", backup, source, result, destination); in test_wcscat()
1637 if (wcslen(destination) != 4) { in test_wcscat()
1640 wcslen(destination)); in test_wcscat()
1643 if (destination[0] != L't') { in test_wcscat()
1645 "expected %x\n", backup, source, destination[0], L't'); in test_wcscat()
1648 if (destination[1] != L'e') { in test_wcscat()
1650 "expected %x\n", backup, source, destination[1], L'e'); in test_wcscat()
1653 if (destination[2] != L's') { in test_wcscat()
1655 "expected %x\n", backup, source, destination[2], L's'); in test_wcscat()
1658 if (destination[3] != L't') { in test_wcscat()
1660 "expected %x\n", backup, source, destination[3], L't'); in test_wcscat()
1663 if (destination[4] != L'\0') { in test_wcscat()
1665 "expected %x\n", backup, source, destination[4], L'\0'); in test_wcscat()
1668 if (destination[5] != L'X') { in test_wcscat()
1670 "expected %x\n", backup, source, destination[5], L'X'); in test_wcscat()
1676 wcscpy(backup, destination); in test_wcscat()
1678 wchar_t* result = wcscat(destination, source); in test_wcscat()
1679 if (result != destination) { in test_wcscat()
1681 "expected %p\n", backup, source, result, destination); in test_wcscat()
1689 if (wcslen(destination) != 8) { in test_wcscat()
1692 wcslen(destination)); in test_wcscat()
1695 if (destination[0] != L't') { in test_wcscat()
1697 "expected %x\n", backup, source, destination[0], L't'); in test_wcscat()
1700 if (destination[1] != L'e') { in test_wcscat()
1702 "expected %x\n", backup, source, destination[1], L'e'); in test_wcscat()
1705 if (destination[2] != L's') { in test_wcscat()
1707 "expected %x\n", backup, source, destination[2], L's'); in test_wcscat()
1710 if (destination[3] != L't') { in test_wcscat()
1712 "expected %x\n", backup, source, destination[3], L't'); in test_wcscat()
1715 if (destination[4] != L't') { in test_wcscat()
1717 "expected %x\n", backup, source, destination[4], L't'); in test_wcscat()
1720 if (destination[5] != L'\xE4') { in test_wcscat()
1722 "expected %x\n", backup, source, destination[5], L'\xE4'); in test_wcscat()
1725 if (destination[6] != L's') { in test_wcscat()
1727 "expected %x\n", backup, source, destination[6], L's'); in test_wcscat()
1730 if (destination[7] != L't') { in test_wcscat()
1732 "expected %x\n", backup, source, destination[7], L't'); in test_wcscat()
1735 if (destination[8] != L'\0') { in test_wcscat()
1737 "expected %x\n", backup, source, destination[8], L'\0'); in test_wcscat()
1740 if (destination[9] != L'X') { in test_wcscat()
1742 "expected %x\n", backup, source, destination[9], L'X'); in test_wcscat()
1748 wcscpy(backup, destination); in test_wcscat()
1750 wchar_t* result = wcscat(destination, source); in test_wcscat()
1751 if (result != destination) { in test_wcscat()
1753 "expected %p\n", backup, source, result, destination); in test_wcscat()
1761 if (wcslen(destination) != 10) { in test_wcscat()
1764 wcslen(destination)); in test_wcscat()
1767 if (destination[0] != L't') { in test_wcscat()
1769 "expected %x\n", backup, source, destination[0], L't'); in test_wcscat()
1772 if (destination[1] != L'e') { in test_wcscat()
1774 "expected %x\n", backup, source, destination[1], L'e'); in test_wcscat()
1777 if (destination[2] != L's') { in test_wcscat()
1779 "expected %x\n", backup, source, destination[2], L's'); in test_wcscat()
1782 if (destination[3] != L't') { in test_wcscat()
1784 "expected %x\n", backup, source, destination[3], L't'); in test_wcscat()
1787 if (destination[4] != L't') { in test_wcscat()
1789 "expected %x\n", backup, source, destination[4], L't'); in test_wcscat()
1792 if (destination[5] != L'\xE4') { in test_wcscat()
1794 "expected %x\n", backup, source, destination[5], L'\xE4'); in test_wcscat()
1797 if (destination[6] != L's') { in test_wcscat()
1799 "expected %x\n", backup, source, destination[6], L's'); in test_wcscat()
1802 if (destination[7] != L't') { in test_wcscat()
1804 "expected %x\n", backup, source, destination[7], L't'); in test_wcscat()
1807 if (destination[8] != L't') { in test_wcscat()
1809 "expected %x\n", backup, source, destination[8], L't'); in test_wcscat()
1812 if (destination[9] != L'e') { in test_wcscat()
1814 "expected %x\n", backup, source, destination[9], L'e'); in test_wcscat()
1817 if (destination[10] != L'\0') { in test_wcscat()
1819 "expected %x\n", backup, source, destination[10], L'\0'); in test_wcscat()
1822 if (destination[11] != L'X') { in test_wcscat()
1824 "expected %x\n", backup, source, destination[11], L'X'); in test_wcscat()
1830 wcscpy(destination, L"some"); in test_wcscat()
1831 wcscpy(backup, destination); in test_wcscat()
1833 wchar_t* result = wcsncat(destination, source, 0); in test_wcscat()
1834 if (result != destination) { in test_wcscat()
1836 "expected %p\n", backup, source, result, destination); in test_wcscat()
1844 if (wcslen(destination) != 4) { in test_wcscat()
1847 wcslen(destination)); in test_wcscat()
1850 if (wcscmp(destination, L"some") != 0) { in test_wcscat()
1852 backup, source, destination); in test_wcscat()
1858 wcscpy(destination, L"some"); in test_wcscat()
1859 wcscpy(backup, destination); in test_wcscat()
1861 wchar_t* result = wcsncat(destination, source, 6); in test_wcscat()
1862 if (result != destination) { in test_wcscat()
1864 "expected %p\n", backup, source, result, destination); in test_wcscat()
1872 if (wcslen(destination) != 10) { in test_wcscat()
1875 wcslen(destination)); in test_wcscat()
1878 if (wcscmp(destination, L"some other") != 0) { in test_wcscat()
1880 backup, source, destination); in test_wcscat()
1886 wcscpy(destination, L"some"); in test_wcscat()
1887 wcscpy(backup, destination); in test_wcscat()
1889 wchar_t* result = wcsncat(destination, source, 20); in test_wcscat()
1890 if (result != destination) { in test_wcscat()
1892 "expected %p\n", backup, source, result, destination); in test_wcscat()
1900 if (wcslen(destination) != 15) { in test_wcscat()
1903 wcslen(destination)); in test_wcscat()
1906 if (wcscmp(destination, L"some other text") != 0) { in test_wcscat()
1908 backup, source, destination); in test_wcscat()
1932 wchar_t destination[] = L"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; in test_wcslcat() local
1936 wcscpy(backup, destination); in test_wcslcat()
1938 size_t result = wcslcat(destination, source, 0); in test_wcslcat()
1950 if (wcslen(destination) != 32) { in test_wcslcat()
1953 wcslen(destination)); in test_wcslcat()
1956 if (destination[0] != L'X') { in test_wcslcat()
1958 "%x, expected %x\n", backup, source, destination[0], L'X'); in test_wcslcat()
1964 destination[0] = L'\0'; in test_wcslcat()
1965 wcscpy(backup, destination); in test_wcslcat()
1967 size_t result = wcslcat(destination, source, 32); in test_wcslcat()
1979 if (wcslen(destination) != 0) { in test_wcslcat()
1982 wcslen(destination)); in test_wcslcat()
1985 if (destination[0] != L'\0') { in test_wcslcat()
1987 "%x, expected %x\n", backup, source, destination[0], L'\0'); in test_wcslcat()
1990 if (destination[1] != L'X') { in test_wcslcat()
1992 "%x, expected %x\n", backup, source, destination[1], L'X'); in test_wcslcat()
1998 wcscpy(backup, destination); in test_wcslcat()
2000 size_t result = wcslcat(destination, source, 3); in test_wcslcat()
2012 if (wcslen(destination) != 2) { in test_wcslcat()
2015 wcslen(destination)); in test_wcslcat()
2018 if (destination[0] != L't') { in test_wcslcat()
2020 "%x, expected %x\n", backup, source, destination[0], L't'); in test_wcslcat()
2023 if (destination[1] != L'e') { in test_wcslcat()
2025 "%x, expected %x\n", backup, source, destination[1], L'e'); in test_wcslcat()
2028 if (destination[2] != L'\0') { in test_wcslcat()
2030 "%x, expected %x\n", backup, source, destination[2], L'\0'); in test_wcslcat()
2033 if (destination[3] != L'X') { in test_wcslcat()
2035 "%x, expected %x\n", backup, source, destination[3], L'X'); in test_wcslcat()
2041 wcscpy(backup, destination); in test_wcslcat()
2043 size_t result = wcslcat(destination, source, 4); in test_wcslcat()
2055 if (wcslen(destination) != 3) { in test_wcslcat()
2058 wcslen(destination)); in test_wcslcat()
2061 if (destination[0] != L't') { in test_wcslcat()
2063 "%x, expected %x\n", backup, source, destination[0], L't'); in test_wcslcat()
2066 if (destination[1] != L'e') { in test_wcslcat()
2068 "%x, expected %x\n", backup, source, destination[1], L'e'); in test_wcslcat()
2071 if (destination[2] != L's') { in test_wcslcat()
2073 "%x, expected %x\n", backup, source, destination[2], L's'); in test_wcslcat()
2076 if (destination[3] != L'\0') { in test_wcslcat()
2078 "%x, expected %x\n", backup, source, destination[3], L'\0'); in test_wcslcat()
2081 if (destination[4] != L'X') { in test_wcslcat()
2083 "%x, expected %x\n", backup, source, destination[4], L'X'); in test_wcslcat()
2089 wcscpy(backup, destination); in test_wcslcat()
2091 size_t result = wcslcat(destination, source, 5); in test_wcslcat()
2103 if (wcslen(destination) != 4) { in test_wcslcat()
2106 wcslen(destination)); in test_wcslcat()
2109 if (destination[0] != L't') { in test_wcslcat()
2111 "%x, expected %x\n", backup, source, destination[0], L't'); in test_wcslcat()
2114 if (destination[1] != L'e') { in test_wcslcat()
2116 "%x, expected %x\n", backup, source, destination[1], L'e'); in test_wcslcat()
2119 if (destination[2] != L's') { in test_wcslcat()
2121 "%x, expected %x\n", backup, source, destination[2], L's'); in test_wcslcat()
2124 if (destination[3] != L't') { in test_wcslcat()
2126 "%x, expected %x\n", backup, source, destination[3], L't'); in test_wcslcat()
2129 if (destination[4] != L'\0') { in test_wcslcat()
2131 "%x, expected %x\n", backup, source, destination[4], L'\0'); in test_wcslcat()
2134 if (destination[5] != L'X') { in test_wcslcat()
2136 "%x, expected %x\n", backup, source, destination[5], L'X'); in test_wcslcat()
2142 wcscpy(backup, destination); in test_wcslcat()
2144 size_t result = wcslcat(destination, source, 32); in test_wcslcat()
2156 if (wcslen(destination) != 8) { in test_wcslcat()
2159 wcslen(destination)); in test_wcslcat()
2162 if (destination[0] != L't') { in test_wcslcat()
2164 "%x, expected %x\n", backup, source, destination[0], L't'); in test_wcslcat()
2167 if (destination[1] != L'e') { in test_wcslcat()
2169 "%x, expected %x\n", backup, source, destination[1], L'e'); in test_wcslcat()
2172 if (destination[2] != L's') { in test_wcslcat()
2174 "%x, expected %x\n", backup, source, destination[2], L's'); in test_wcslcat()
2177 if (destination[3] != L't') { in test_wcslcat()
2179 "%x, expected %x\n", backup, source, destination[3], L't'); in test_wcslcat()
2182 if (destination[4] != L't') { in test_wcslcat()
2184 "%x, expected %x\n", backup, source, destination[4], L't'); in test_wcslcat()
2187 if (destination[5] != L'\xE4') { in test_wcslcat()
2189 "%x, expected %x\n", backup, source, destination[5], in test_wcslcat()
2193 if (destination[6] != L's') { in test_wcslcat()
2195 "%x, expected %x\n", backup, source, destination[6], L's'); in test_wcslcat()
2198 if (destination[7] != L't') { in test_wcslcat()
2200 "%x, expected %x\n", backup, source, destination[7], L't'); in test_wcslcat()
2203 if (destination[8] != L'\0') { in test_wcslcat()
2205 "%x, expected %x\n", backup, source, destination[8], L'\0'); in test_wcslcat()
2208 if (destination[9] != L'X') { in test_wcslcat()
2210 "%x, expected %x\n", backup, source, destination[9], L'X'); in test_wcslcat()
2239 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcslcpy() local
2241 size_t result = wcslcpy(destination, source, 0); in test_wcslcpy()
2253 if (wcslen(destination) != 16) { in test_wcslcpy()
2256 wcslen(destination)); in test_wcslcpy()
2259 if (destination[0] != L'X') { in test_wcslcpy()
2261 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcslcpy()
2269 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcslcpy() local
2270 size_t result = wcslcpy(destination, source, 16); in test_wcslcpy()
2282 if (wcslen(destination) != 0) { in test_wcslcpy()
2285 wcslen(destination)); in test_wcslcpy()
2288 if (destination[0] != L'\0') { in test_wcslcpy()
2290 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcslcpy()
2294 if (destination[1] != L'X') { in test_wcslcpy()
2296 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcslcpy()
2304 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcslcpy() local
2305 size_t result = wcslcpy(destination, source, 3); in test_wcslcpy()
2317 if (wcslen(destination) != 2) { in test_wcslcpy()
2320 wcslen(destination)); in test_wcslcpy()
2323 if (destination[0] != L't') { in test_wcslcpy()
2325 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcslcpy()
2329 if (destination[1] != L'e') { in test_wcslcpy()
2331 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcslcpy()
2335 if (destination[2] != L'\0') { in test_wcslcpy()
2337 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcslcpy()
2341 if (destination[3] != L'X') { in test_wcslcpy()
2343 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcslcpy()
2351 wchar_t destination[] = L"XXXXXXXXXXXXXXXX"; in test_wcslcpy() local
2352 size_t result = wcslcpy(destination, source, 16); in test_wcslcpy()
2364 if (wcslen(destination) != 4) { in test_wcslcpy()
2367 wcslen(destination)); in test_wcslcpy()
2370 if (destination[0] != L't') { in test_wcslcpy()
2372 "destination[0]=%x, expected %x\n", source, destination[0], in test_wcslcpy()
2376 if (destination[1] != L'e') { in test_wcslcpy()
2378 "destination[1]=%x, expected %x\n", source, destination[1], in test_wcslcpy()
2382 if (destination[2] != L's') { in test_wcslcpy()
2384 "destination[2]=%x, expected %x\n", source, destination[2], in test_wcslcpy()
2388 if (destination[3] != L't') { in test_wcslcpy()
2390 "destination[3]=%x, expected %x\n", source, destination[3], in test_wcslcpy()
2394 if (destination[4] != L'\0') { in test_wcslcpy()
2396 "destination[4]=%x, expected %x\n", source, destination[4], in test_wcslcpy()
2400 if (destination[5] != L'X') { in test_wcslcpy()
2402 "destination[5]=%x, expected %x\n", source, destination[5], in test_wcslcpy()
3577 wchar_t destination[] = L"XXXX"; in test_wmemcpy() local
3578 wchar_t* result = wmemcpy(destination, source, 0); in test_wmemcpy()
3579 if (result != destination || errno != 0) { in test_wmemcpy()
3582 result, destination, errno); in test_wmemcpy()
3585 if (destination[0] != L'X') { in test_wmemcpy()
3587 "destination[0]=%x, expected %x\n", source, destination[0], in test_wmemcpy()
3595 wchar_t destination[] = L"XXXX"; in test_wmemcpy() local
3596 wchar_t* result = wmemcpy(destination, source, 1); in test_wmemcpy()
3597 if (result != destination || wmemcmp(destination, source, 1) != 0 in test_wmemcpy()
3601 result, destination, errno); in test_wmemcpy()
3604 if (destination[1] != L'X') { in test_wmemcpy()
3606 "destination[1]=%x, expected %x\n", source, destination[1], in test_wmemcpy()
3614 wchar_t destination[64]; in test_wmemcpy() local
3615 wchar_t* result = wmemcpy(destination, source, 31); in test_wmemcpy()
3616 if (result != destination || wmemcmp(destination, source, 31) != 0 in test_wmemcpy()
3620 result, destination, errno); in test_wmemcpy()
3645 wchar_t destination[] = L"XXXX"; in test_wmempcpy() local
3646 wchar_t* result = wmempcpy(destination, source, 0); in test_wmempcpy()
3647 if (result != destination || errno != 0) { in test_wmempcpy()
3650 result, destination, errno); in test_wmempcpy()
3653 if (destination[0] != L'X') { in test_wmempcpy()
3655 "destination[0]=%x, expected %x\n", source, destination[0], in test_wmempcpy()
3663 wchar_t destination[] = L"XXXX"; in test_wmempcpy() local
3664 wchar_t* result = wmempcpy(destination, source, 1); in test_wmempcpy()
3665 if (result != destination + 1 || wmemcmp(destination, source, 1) != 0 in test_wmempcpy()
3669 result, destination, errno); in test_wmempcpy()
3672 if (destination[1] != L'X') { in test_wmempcpy()
3674 "destination[1]=%x, expected %x\n", source, destination[1], in test_wmempcpy()
3682 wchar_t destination[64]; in test_wmempcpy() local
3683 wchar_t* result = wmempcpy(destination, source, 31); in test_wmempcpy()
3684 if (result != destination + 31 || wmemcmp(destination, source, 31) != 0 in test_wmempcpy()
3688 result, destination, errno); in test_wmempcpy()
3713 wchar_t destination[] = L"XXXX"; in test_wmemmove() local
3714 wchar_t* result = wmemmove(destination, source, 0); in test_wmemmove()
3715 if (result != destination || errno != 0) { in test_wmemmove()
3718 result, destination, errno); in test_wmemmove()
3721 if (destination[0] != L'X') { in test_wmemmove()
3723 "destination[0]=%x, expected %x\n", source, destination[0], in test_wmemmove()
3731 wchar_t destination[] = L"XXXX"; in test_wmemmove() local
3732 wchar_t* result = wmemmove(destination, source, 1); in test_wmemmove()
3733 if (result != destination || wmemcmp(destination, source, 1) != 0 in test_wmemmove()
3737 result, destination, errno); in test_wmemmove()
3740 if (destination[1] != L'X') { in test_wmemmove()
3742 "destination[1]=%x, expected %x\n", source, destination[1], in test_wmemmove()
3750 wchar_t destination[64]; in test_wmemmove() local
3751 wmemcpy(destination, source, 31); in test_wmemmove()
3752 wchar_t* result = wmemmove(destination, destination + 4, 27); in test_wmemmove()
3753 if (result != destination || wmemcmp(destination, source + 4, 27) != 0 in test_wmemmove()
3757 source + 4, result, destination, errno); in test_wmemmove()
3764 wchar_t destination[64]; in test_wmemmove() local
3765 wmemcpy(destination, source, 31); in test_wmemmove()
3766 wchar_t* result = wmemmove(destination + 2, destination, 8); in test_wmemmove()
3767 if (result != destination + 2 in test_wmemmove()
3768 || wmemcmp(destination, L"tÄtÄstdatawith some charäcters", 31) != 0 in test_wmemmove()
3772 source, result, destination, errno); in test_wmemmove()
3797 wchar_t destination[] = L"XXXX"; in test_wmemset() local
3798 wchar_t* result = wmemset(destination, source, 0); in test_wmemset()
3799 if (result != destination || errno != 0) { in test_wmemset()
3802 result, destination, errno); in test_wmemset()
3805 if (destination[0] != L'X') { in test_wmemset()
3807 "destination[0]=%x, expected %x\n", source, destination[0], in test_wmemset()
3815 wchar_t destination[] = L"some text"; in test_wmemset() local
3816 wchar_t* result = wmemset(destination, source, 1); in test_wmemset()
3817 if (result != destination || errno != 0) { in test_wmemset()
3820 result, destination, errno); in test_wmemset()
3823 if (destination[0] != L'M') { in test_wmemset()
3825 "destination[0]=%x, expected %x\n", source, destination[0], in test_wmemset()
3829 if (destination[1] != L'o') { in test_wmemset()
3831 "destination[1]=%x, expected %x\n", source, destination[1], in test_wmemset()
3839 wchar_t destination[] = L"some text"; in test_wmemset() local
3840 wchar_t* result = wmemset(destination, source, 9); in test_wmemset()
3841 if (result != destination || errno != 0) { in test_wmemset()
3844 result, destination, errno); in test_wmemset()
3848 if (destination[i] != L'M') { in test_wmemset()
3851 destination[i], L'M'); in test_wmemset()