⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fns_mem.h

📁 用于嵌入式系统的TCP/IP协议栈及若干服务
💻 H
字号:
/**            Copyright (c) 1998-2001 by NETsilicon Inc.**  This software is copyrighted by and is the sole property of*  NETsilicon.  All rights, title, ownership, or other interests*  in the software remain the property of NETsilicon.  This*  software may only be used in accordance with the corresponding*  license agreement.  Any unauthorized use, duplication, transmission,*  distribution, or disclosure of this software is expressly forbidden.**  This Copyright notice may not be removed or modified without prior*  written consent of NETsilicon.**  NETsilicon, reserves the right to modify this software*  without notice.**  NETsilicon*  411 Waverley Oaks Road                  USA 781.647.1234*  Suite 227                               http://www.netsilicon.com*  Waltham, MA 02452                       AmericaSales@netsilicon.com***************************************************************************  $Name: Fusion 6.52 Fusion 6.51 $*  $Date: 2001/09/20 10:58:00 $*  $Source: M:/psisrc/clib/incl/rcs/fns_mem.h $*  $Revision: 1.6 $***************************************************************************  File Description:  Memory access routines definitions and macros***************************************************************************/#ifndef _FNS_MEM_#define _FNS_MEM_#include "std.h"import char * fns_memccpy(char * s1, const char * s2, char c, int n);import char * fns_memchr(char * s, char c, int n);import char * fns_memset(char * s, char c, int n);import int    fns_memcmp(const char * s1, const char * s2, int n);import int    fns_bcopy(char * b1, const char * b2, int length);import char * fns_memcpy(char * s1, const char * s2, int n);#ifdef USE_FUSION_MEMLIB#define OS_MEMCCPY 			fns_memccpy#define OS_MEMCPY  			fns_memcpy#define OS_MEMCHR 			fns_memchr#define OS_MEMSET  			fns_memset#define OS_MEMCMP  			fns_memcmp#define OS_BCOPY(a, b, n) 	OS_MEMCPY(b, a, n)#else /* Not using Fusion memory library.  Use C runtime library or	     another custom defined version of each function.	  */#ifndef OS_MEMCCPY#define OS_MEMCCPY memccpy#endif#ifndef OS_MEMCPY#define OS_MEMCPY memcpy#endif#ifndef OS_MEMCHR#define OS_MEMCHR memchr#endif#ifndef OS_MEMSET  #define OS_MEMSET memset#endif#ifndef OS_MEMCMP       #define OS_MEMCMP memcmp#endif#ifndef OS_BCOPY#define OS_BCOPY(a, b, n) OS_MEMCPY(b, a, n)#endif#endif /* USE_FUSION_MEMLIB */#endif /*_FNS_MEMORY_*/

⌨️ 快捷键说明

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