Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(3C) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

swab(3C)                                                           swab(3C)

NAME
     swab - swap bytes

SYNOPSIS
     #include <unistd.h>

     void swab(const void *src, void *dest, ssizet nbytes);

DESCRIPTION
     swab() copies nbytes bytes pointed to by src to the array pointed to
     by dest, exchanging adjacent even and odd bytes. nbytes should be even
     and non-negative. If nbytes is odd, swab() uses nbytes -1 instead, and
     the disposition of the last byte is unspecified.

     If copying takes place between objects that overlap, the behavior is
     undefined. If nbytes is negative, swab() does nothing.







































Page 1                       Reliant UNIX 5.44                Printed 11/98

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