Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(3) — Unisoft V7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SWAB(3)  —  UNIX Programmer’s Manual

NAME

swab − swap bytes

SYNOPSIS

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

DESCRIPTION

Swab copies nbytes bytes pointed to by from to the position pointed to by to, exchanging adjacent even and odd bytes.  It is useful for carrying binary data between to other machines.  Nbytes should be even. 

7th Edition

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