swab
swap adjacent bytes
You're viewing an older version of this page (#3300). View the current version.
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 \c len bytes from the location referenced by \c src to the location referenced by \c dst, swapping adjacent bytes. \n \n The argument \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