Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(S) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     SWAB(S)                   UNIX System V                   SWAB(S)



     Name
          swab - swap bytes

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

     Description
          The swab function copies nbytes bytes pointed to by from to
          the array pointed to by to, exchanging adjacent even and odd
          bytes.  nbytes should be even and non-negative.  If nbytes
          is odd and positive, swab uses nbytes-1 instead. If nbytes
          is negative, swab does nothing.

     Standards Conformance
          swab is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.


                                             (printed 6/20/89)



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