File:  [RetroPC.NET] / np2 / codecnv / tcswap16.c
Revision 1.1: download - view: text, annotated - select for diffs
Sat Apr 2 00:35:48 2005 JST (20 years, 7 months ago) by yui
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, HEAD
fix codecnv (T.Yui)

#include	"compiler.h"
#include	"textcnv.h"


void textcnv_swapendian16(void *buf, UINT leng) {

	UINT8	*p;
	UINT8	tmp;

	p = (UINT8 *)buf;
	while(leng) {
		tmp = p[0];
		p[0] = p[1];
		p[1] = tmp;
		p += 2;
		leng--;
	}
}


RetroPC.NET-CVS <cvs@retropc.net>