DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

swab(S)


swab -- swap bytes

Syntax

cc . . . -lc

void swab(const void *src, void *dest, ssize_t 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:

X/Open Portability Guide, Issue 3, 1989 .


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003