SWAB(3)                  BSD Library Functions Manual                  SWAB(3)
NAME
     swab -- swap adjacent bytes
LIBRARY
     Standard C Library (libc, -lc)
SYNOPSIS
     #include <unistd.h>
     void
     swab(const void *restrict src, void *restrict dest, ssize_t nbytes);
DESCRIPTION
     The function swab() copies nbytes bytes from the location referenced by src to the location referenced
     by dest, swapping adjacent bytes.
     The argument nbytes must be an even number.
LEGACY SYNOPSIS
     #include <string.h>
     void
     swab(const void *restrict src, void *restrict dest, size_t nbytes);
     The include file <string.h> is necessary for this function.  The type of nbytes has changed.
SEE ALSO
     bzero(3), memset(3), compat(5)
HISTORY
     A swab() function appeared in Version 7 AT&T UNIX.
BSD                              June 4, 1993                              BSD
 |