VxWorks BSP框架源代码包含头文件和驱动

源代码在线查看: memcpy.c

软件大小: 7795 K
上传用户: meailin
关键词: VxWorks BSP 源代码 头文件
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* memcpy.c - memory copy file for string */								/* Copyright 1992-1993 Wind River Systems, Inc. */								/*				modification history				--------------------				01g,25feb93,jdi  documentation cleanup for 5.1.				01f,20sep92,smb  documentation additions				01e,14sep92,smb  memcpy again uses bcopy				01d,07sep92,smb  changed so that memcpy is seperate from bcopy.				01c,30jul92,smb  changed to use bcopy.				01b,12jul92,smb  changed post decrements to pre decrements.				01a,08jul92,smb  written and documented.				           +rrr				*/								/*				DESCRIPTION								INCLUDE FILES: string.h								SEE ALSO: American National Standard X3.159-1989								NOMANUAL				*/								#include "vxWorks.h"				#include "string.h"												/*******************************************************************************				*				* memcpy - copy memory from one location to another (ANSI)				*				* This routine copies  characters from the object pointed				* to by  into the object pointed to by . If copying				* takes place between objects that overlap, the behavior is undefined.				*				* INCLUDE FILES: string.h				*				* RETURNS: A pointer to .				*/								void * memcpy				    (				    void *       destination,   /* destination of copy */				    const void * source,        /* source of copy */				    size_t       size           /* size of memory to copy */				    )				    {				    bcopy ((char *) source, (char *) destination, (size_t) size);				    return (destination);				    }											

相关资源