home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 48
/
Amiga_Dream_48.iso
/
Atari
/
c
/
sozobon-v2
/
dlibsrc.lha
/
SWAB.C
< prev
next >
Wrap
Text File
|
1988-10-05
|
382b
|
21 lines
void swab(src, dst, n)
register char *src;
register char *dst;
register int n;
/*
* Note the backward order of the <src> and <dst> parameters. Don't
* blame me... this is how Microsoft specifies it.
*/
{
register int i, j;
register char c;
n >>= 1; /* convert to a word count */
while(n--)
{
c = *dst++;
*dst++ = *src++;
*src++ = c;
}
}