01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SWAB ( 3C ) SWAB ( 3C )<br />

NAME<br />

swab - swap bytes<br />

SYNOPSIS<br />

void swab (from, to, nbytes)<br />

char •from, •to;<br />

int nbytes;<br />

DESCRIPTION<br />

Swab copies nbytes bytes pointed to by from to the array pointed<br />

to by to, exchanging adjacent even and odd bytes. It is useful for<br />

carrying binary data between PDP-11s and other machines.<br />

Nbytes should be even and non-negative. If nbytes is odd and<br />

positive swab uses nbytes -1 instead. If nbytes is negative swab<br />

does nothing.<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!