Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(3C) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



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



NAME
     swab - swap bytes

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

DESCRIPTION
     Swab copies number of bytes (nbytes) 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 5/10/85                                            SWAB-1



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