home *** CD-ROM | disk | FTP | other *** search
- /*--------------------------------------*/
- /* */
- /* 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]);
- }