man.bsd.lv manual page server

Manual Page Search Parameters

BSWAP(3) Library Functions Manual BSWAP(3)

bswap16, bswap32, bswap64byte-order swapping functions

library “libc”

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

uint16_t
bswap16(uint16_t);

uint32_t
bswap32(uint32_t);

uint64_t
bswap64(uint64_t);

The (), (), and () 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.

byteorder(3)

March 17, 1998 NetBSD-9.2