Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(S) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     SWAB(S)                  XENIX System V                   SWAB(S)



     Name
          swab - Swaps bytes.

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

     Description
          swab copies nbytes pointed to by from to the position
          pointed to by to, exchanging adjacent even and odd bytes.
          It is useful for transporting binary data between machines
          that differ in the ordering of bytes.  nbytes should be
          even.









































     Page 1                                           (printed 8/7/87)



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