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