*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> swab (3)              



NAME    [Toc]    [Back]

       swab - swap adjacent bytes

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       void swab(const void *from, void *to, size_t n);

DESCRIPTION    [Toc]    [Back]

       The swab() function copies n bytes from the array pointed to by from to
       the array pointed to by to, exchanging adjacent	even  and  odd	bytes.
       This  function is used to exchange data between machines that have different
 low/high byte ordering.

RETURN VALUE    [Toc]    [Back]

       The swab() function returns no value.

CONFORMING TO    [Toc]    [Back]

       SVID 3, BSD 4.3

SEE ALSO    [Toc]    [Back]


GNU				  1993-04-13			       SWAB(3)
[ Back ]
 Similar pages
Name OS Title
swab Tru64 Swap bytes
swab IRIX swap bytes
lrange IRIX Return one or more adjacent elements from a list
swapctl IRIX manage swap space
removeSwap IRIX removes the indicated swap element
uscas IRIX compare and swap operator
swapctl OpenBSD modify swap configuration
swap IRIX swap administrative interface
swapctl NetBSD modify swap configuration
mkswap Linux set up a Linux swap area
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service