BSWAP(3)                NetBSD Library Functions Manual               BSWAP(3)

NAME
     bswap16, bswap32, bswap64 -- byte-order swapping functions

LIBRARY
     Standard C Library (libc, -lc)

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

     uint16_t
     bswap16(uint16_t);

     uint32_t
     bswap32(uint32_t);

     uint64_t
     bswap64(uint64_t);

DESCRIPTION
     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
     byteorder(3)

NetBSD 6.0.1                    March 17, 1998                    NetBSD 6.0.1

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen