DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

swab(S-osr5)


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 .


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005