NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO
#include <string.h>void swab(const void *src, void *dst, size_t len);
The swab function copies nbytes bytes, which are pointed to by src, to the object pointed to by dst, exchanging adjacent bytes. The len argument should be even. If len is odd, swab copies and exchanges len-1 bytes and the disposition of the last byte is unspecified. Copying between objects that overlap can lead to unpredictable results. If len is negative, swab does nothing.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO