/alps/fastwriter

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/fastwriter

« back to all changes in this revision

Viewing changes to memcpy.h

  • Committer: Suren A. Chilingaryan
  • Date: 2012-12-03 21:13:51 UTC
  • mfrom: (12.1.2 fastwriter)
  • Revision ID: csa@dside.dyndns.org-20121203211351-fayu265mie2bop91
Merge custom memcpy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/********************************************************************
 
2
 ** File:     memcpy.h
 
3
 **
 
4
 ** Copyright (C) 2005 Daniel Vik
 
5
 ** 
 
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:
 
12
 ** 
 
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
 
18
 **    required.
 
19
 ** 
 
20
 ** 2. Altered source versions must be plainly marked as such, and
 
21
 **    must not be misrepresented as being the original software.
 
22
 ** 
 
23
 ** 3. This notice may not be removed or altered from any source
 
24
 **    distribution.
 
25
 ** 
 
26
 ** 
 
27
 ** Description: Implementation of the standard library function memcpy.
 
28
 **             This implementation of memcpy() is ANSI-C89 compatible.
 
29
 **
 
30
 *******************************************************************/
 
31
 
 
32
 
 
33
/********************************************************************
 
34
 ** Includes for size_t definition
 
35
 *******************************************************************/
 
36
 
 
37
#include <stddef.h>
 
38
 
 
39
 
 
40
/********************************************************************
 
41
 **
 
42
 ** void *memcpy(void *dest, const void *src, size_t count)
 
43
 **
 
44
 ** Args:     dest    - pointer to destination buffer
 
45
 **           src     - pointer to source buffer
 
46
 **           count   - number of bytes to copy
 
47
 **
 
48
 ** Return:   A pointer to destination buffer
 
49
 **
 
50
 ** Purpose:  Copies count bytes from src to dest. No overlap check
 
51
 **           is performed.
 
52
 **
 
53
 *******************************************************************/
 
54
 
 
55
#ifdef __cplusplus
 
56
extern "C" {
 
57
#endif
 
58
 
 
59
void *fast_memcpy(void *dest, const void *src, size_t count);
 
60
 
 
61
#ifdef __cplusplus
 
62
}
 
63
#endif