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 = swaplong(lval); ulong longval, lval; shortval = swapshort(sval); ushort 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 5/12/88 1
%%index%% na:360,137; sy:497,1352; de:1849,607; se:2456,150; %%index%%000000000084