Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(3C) — sys5 — Apollo Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought



SWAB(3C)                 DOMAIN/IX SYS5                  SWAB(3C)



NAME
     swab - swap bytes

USAGE
     void swab(from, to, nbytes)
     char *from, *to;
     int nbytes;


DESCRIPTION
     Swab copies nbytes of the bytes that from points to into the
     array that to specifies, exchanging adjacent even and odd
     bytes.  It is useful for carrying binary data between
     machines.  Nbytes should be an even number and non-negative.
     If nbytes is odd and positive, swab uses nbytes-1 instead.
     If nbytes is negative, swab does nothing.





































Printed 12/4/86                                            SWAB-1





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