Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ swab(3) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

memory: memccpy, memchr, memcmp, memcpy, memset, bcopy

string



SWAB(3,L)                   AIX Technical Reference                   SWAB(3,L)



-------------------------------------------------------------------------------
swab



PURPOSE

Copies bytes.

LIBRARY

Standard C Library (libc.a)

SYNTAX

void swab (from, to, nbytes)
short *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:  "memory: memccpy, memchr, memcmp, memcpy, memset, bcopy" and
"string."






















Processed November 7, 1990         SWAB(3,L)                                  1



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