swab3
Swap adjacent bytes
Usage
#include <unistd.h>
void
swab(const void * restrict src, void * restrict dst, ssize_t len);
Library
Standard C Library (libc, -lc)
Overview
The function swab() copies len bytes from the location referenced by src to the location referenced by dst, swapping adjacent bytes.
The argument len must be an even number. If len is less than zero, nothing will be done.
Releases
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 40 times.