home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
cexchang.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
676b
|
32 lines
/*--------------------------------------*/
/* */
/* CEXCHANGE(X,X,X) */
/* */
/* Functionality: */
/* Switches the contents of two */
/* character arrays. */
/* Arguments: */
/* 0: One of the arrays to be */
/* switched. */
/* 1: The other array to be */
/* switched. */
/* 2: The length of the arrays. */
/* Returns: Nothing */
/* Author: John Callicotte */
/* Date created/modified: 09/01/88 */
/* */
/*--------------------------------------*/
void cexchange(a,b,c)
int c;
char a[],b[];
{
int j;
char d;
for (j=0;j<c;j++){
d=a[j];
a[j]=b[j];
b[j]=d;
}
}