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