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

  man pages->NetBSD man pages -> bswap16 (3)              
Title
Content
Arch
Section
 

BSWAP(3)

Contents


NAME    [Toc]    [Back]

     bswap16, bswap32, bswap64 - byte-order swapping functions

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <machine/bswap.h>

     u_int16_t
     bswap16(u_int16_t);

     u_int32_t
     bswap32(u_int32_t);

     u_int64_t
     bswap64(u_int64_t);

DESCRIPTION    [Toc]    [Back]

     The bswap16(), bswap32(), and bswap64() functions return the value of
     their argument with the bytes inverted.  They can be used to convert 16,
     32 or 64 bits integers from little to big endian, or vice-versa.

SEE ALSO    [Toc]    [Back]

      
      
     byteorder(3)

BSD                             March 17, 1998                             BSD
[ Back ]
 Similar pages
Name OS Title
ntohl Tru64 Convert an unsigned 32-bit integer from Internet network byte order to host byte order
htons Tru64 Convert an unsigned short (16-bit) integer from host byte order to network byte order
TIFFswab IRIX byte- and bit-swapping routines
byteorder FreeBSD byte order operations
htole16 FreeBSD byte order operations
be64enc FreeBSD byte order operations
be64dec FreeBSD byte order operations
htole32 FreeBSD byte order operations
htole64 FreeBSD byte order operations
le16toh FreeBSD byte order operations
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service