myfunc.c

来自「基于atmel t89c51rd2的tcpip源代码」· C语言 代码 · 共 44 行

C
44
字号
/*
 * Copyright (C) 2002 by TechiZ. All rights reserved.
 *
 * This program was written in Korean(Comment and some more).
 *
 * This program was developed by TechiZ(The Company name).
 * TechiZ want to share this program with you who loves the 8051 & the TCP/IP.
 * 
 * You MUST DOWNLOAD THIS CODE from TechiZ Homepage.
 * You DO NOT USE THIS CODE FOR COMMERCIAL PURPOSE.
 * This code is ONLY FREE FOR THE STUDY.
 * If you want more, send me E-mail.
 *
 * E-mail: techiz@techiz.com
 * ( Subject is : [T89C51RD2 & TinyTCP] bla~ bla bla.... )
 *
 * Homepage: http://www.techiz.com
 * 
 * You DO NOT DELETE THIS COPYRIGHT MESSAGE IN THE USING OF THIS CODE.
 *
 * In the using of this code, TechiZ does NOT GUARANTEE ABOUT WORKING WITHOUT ERROR.
 */

/* *src甫 numbytes父怒 *dest栏肺 墨乔茄促. */

void Move( unsigned char *src, unsigned char *dest, unsigned int numbytes )
{
	if ( numbytes <= 0 ) 
    		return;
	if ( src < dest ) {
		src += numbytes;
		dest += numbytes;
		do {
			*--dest = *--src;
		} while ( --numbytes > 0 );
	} else {
		do {
		*dest++ = *src++;
		} while ( --numbytes > 0 );
	}
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?