Query: swab
OS: osx
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SWAB(3) BSD Library Functions Manual SWAB(3)NAMEswab -- swap adjacent bytesLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h> void swab(const void *restrict src, void *restrict dest, ssize_t nbytes);DESCRIPTIONThe function swab() copies nbytes bytes from the location referenced by src to the location referenced by dest, swapping adjacent bytes. The argument nbytes should be an even number. If nbytes is odd, swab() copies and exchanges nbytes -1 bytes and the disposition of the last byte is unspecified. If copying takes place between objects that overlap, the behavior is undefined. If nbytes is negative, swab() does nothing.SEE ALSObzero(3), memset(3), compat(5)HISTORYA swab() function appeared in Version 7 AT&T UNIX.BSDFebruary 24, 2010 BSD
Related Man Pages |
---|
swab(3p) - centos |
kvm_write(3) - freebsd |
kvm_read(3) - freebsd |
kvm_write(3) - netbsd |
kvm_kread(3kvm) - sunos |
Similar Topics in the Unix Linux Community |
---|
Endian Conversion |
Reading tapes from other platform |
How to determince CD is bootable or not |
FTP script variable issue |