git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@551 ec53bebd-3082-4978-b11e-865c3cabbd6b
		
			
				
	
	
		
			19 lines
		
	
	
		
			257 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			257 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifdef HAVE_CONFIG_H
 | 
						|
#include <config.h>
 | 
						|
RCSID("$Id$");
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef HAVE_SWAB
 | 
						|
void
 | 
						|
swab (char *from, char *to, int nbytes)
 | 
						|
{
 | 
						|
     while(nbytes >= 2) {
 | 
						|
	  *(to + 1) = *from;
 | 
						|
	  *to = *(from + 1);
 | 
						|
	  to += 2;
 | 
						|
	  from += 2;
 | 
						|
	  nbytes -= 2;
 | 
						|
     }
 | 
						|
}
 | 
						|
#endif
 |