swab(S) 6 January 1993 swab(S) Name swab - swap bytes Syntax cc . . . -lc void swab (src, dest, nbytes) char *src, *dest; int nbytes; Description The swab function copies nbytes bytes pointed to by src to the object pointed to by dest, exchanging adjacent bytes. The nbytes argument should be even and non-negative. If nbytes is odd and positive, swab copies and exchanges nbytes -1 and the disposition fo the last byte is undefined. If nbytes is negative, swab does nothing. Standards conformance swab is conformant with: AT&T SVID Issue 2; and X/Open Portability Guide, Issue 3, 1989.