Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SWAB.C
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
/* SWAB.C illustrates:
* swab
*/
#include <stdlib.h>
#include <stdio.h>
char from[] = "BADCFEHGJILKNMPORQTSVUXWZY";
char to[] = "..........................";
void main()
{
printf( "Before:\t%s\n\t%s\n\n", from, to );
swab( from, to, sizeof( from ) );
printf( "After:\t%s\n\t%s\n\n", from, to );
}