1
/********************************************************************
4
** Copyright (C) 2005 Daniel Vik
6
** This software is provided 'as-is', without any express or implied
7
** warranty. In no event will the authors be held liable for any
8
** damages arising from the use of this software.
9
** Permission is granted to anyone to use this software for any
10
** purpose, including commercial applications, and to alter it and
11
** redistribute it freely, subject to the following restrictions:
13
** 1. The origin of this software must not be misrepresented; you
14
** must not claim that you wrote the original software. If you
15
** use this software in a product, an acknowledgment in the
16
** use this software in a product, an acknowledgment in the
17
** product documentation would be appreciated but is not
20
** 2. Altered source versions must be plainly marked as such, and
21
** must not be misrepresented as being the original software.
23
** 3. This notice may not be removed or altered from any source
27
** Description: Implementation of the standard library function memcpy.
28
** This implementation of memcpy() is ANSI-C89 compatible.
30
*******************************************************************/
33
/********************************************************************
34
** Includes for size_t definition
35
*******************************************************************/
40
/********************************************************************
42
** void *memcpy(void *dest, const void *src, size_t count)
44
** Args: dest - pointer to destination buffer
45
** src - pointer to source buffer
46
** count - number of bytes to copy
48
** Return: A pointer to destination buffer
50
** Purpose: Copies count bytes from src to dest. No overlap check
53
*******************************************************************/
59
void *fast_memcpy(void *dest, const void *src, size_t count);