unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (NetBSD-2.0)
Page:
Section:
Apropos / Subsearch:
optional field

BSWAP(3)                 BSD Library Functions Manual                 BSWAP(3)

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

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <&lt;sys/types.h>&gt;
     #include <&lt;machine/bswap.h>&gt;

     u_int16_t
     bswap16(u_int16_t);

     u_int32_t
     bswap32(u_int32_t);

     u_int64_t
     bswap64(u_int64_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)

BSD                             March 17, 1998                             BSD