Home | History | Annotate | Download | only in tests

Lines Matching full:swab

1428 TEST(UNISTD_TEST, swab) {
1429 // POSIX: "The swab() function shall copy nbytes bytes, which are pointed to by src,
1433 swab("ehll oowlr\0d", buf, 12);
1438 // POSIX: "If nbytes is odd, swab() copies and exchanges nbytes-1 bytes and the disposition
1443 swab("012345", buf, 3);
1453 swab(buf, buf, 4);
1464 // POSIX: "If nbytes is negative, swab() does nothing."
1467 swab("hello", buf, -1);