The function
swab() copies
len bytes from the location referenced by
src to the location referenced by
dst, swapping adjacent bytes.
If
len is negative or zero,
swab() does nothing. If
len is odd,
swab() copies
len - 1 bytes and the disposition of the last byte is unspecified.