Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(3) — Ultrix/UWS 4.4 RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

swab(3)

Name

swab − swap bytes

Syntax

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

Description

The swab subroutine 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 machines.  The nbytes should be even. 

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