Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

memccpy, memchr, memcmp, memcpy, memset, bcopy

string

     swab

Purpose

     Copies bytes.

Library

     Standard C Library (libc.a)

Syntax

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

Description

     The swab subroutine copies nbytes bytes from the location
     pointed to by the from  parameter to the array pointed to
     by  the to  parameter, exchanging  adjacent even  and odd
     bytes.

     The nbytes parameter should  be even and nonnegative.  If
     the nbytes parameter  is odd and positive,  the swab uses
     nbytes-1 instead.   If the nbytes parameter  is negative,
     then swab does nothing.

Related Information

     In this book:  " memccpy, memchr, memcmp, memcpy, memset,
     bcopy" and "string."

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