home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
exchange.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
475b
|
19 lines
/*--------------------------------------*/
/* */
/* EXCHANGE(X,X,X) */
/* */
/* Switches the contents of two integer */
/* arrays. The first two arguments are */
/* the arrays being switched. The third */
/* argument is the dimension of the */
/* array. */
/* */
/*--------------------------------------*/
void exchange(a,b,c)
int a[],b[],c;
{
int j;
for (j=0;j<c;j++)
swap(&a[j],&b[j]);
}