swap adjacent bytes

You're viewing an older version of this page (#3300). View the current version.

View versions (3)

NAME

<span class="Nm" id="swab">swab</span>

INTERFACE

#include <string.h> void swab ( const void * restrict src, void * restrict dst, size_t len )

DESCRIPTION

The function swab copies &#92;c len bytes from the location referenced by &#92;c src to the location referenced by &#92;c dst, swapping adjacent bytes. &#92;n &#92;n The argument &#92;c len must be an even number.

SEE ALSO

reference:bzero (3) , memset (3)

HISTORY

A swab function appeared in Version 7 AT&T UNIX