Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

byteorder(3n)



BYTESWAP(3N)            COMMAND REFERENCE            BYTESWAP(3N)



NAME
     byteswap, swap_long, swap_short - reverse byte order of
     multi-byte scalar values

SYNOPSIS
     #include <sys/types.h>

     longval = swap_long(lval);
     u_long longval, lval;

     shortval = swap_short(sval);
     u_short shortval, sval;

DESCRIPTION
     These routines perform unsigned byte order reversal of 16
     and 32-bit quantities.  Similar in function to htonl and
     htons, these routines are used to perform byte swapping on
     machines such as the Tektronix 4300 series workstations, for
     which the byte ordering routines are defined as null macros
     (see the include file <netinet/in.h>).

SEE ALSO
     byteorder(3n).
































Printed 3/13/89                                                 1



%%index%%
na:360,137;
sy:497,1352;
de:1849,607;
se:2456,150;
%%index%%000000000084

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026