home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / clib / memcpy.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-09  |  959 b   |  55 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: memcpy.c,v 1.3 1997/01/01 03:41:10 ldp Exp $
  4.  
  5.     Desc: ANSI C function memcpy()
  6.     Lang: english
  7. */
  8. #include <proto/exec.h>
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <string.h>
  14.  
  15.     void * memcpy (
  16.  
  17. /*  SYNOPSIS */
  18.     void *         dest,
  19.     const void * src,
  20.     size_t         count)
  21.  
  22. /*  FUNCTION
  23.     Copy the contents of a part of memory to another. Both areas
  24.     must not overlap. If they do, use memmove().
  25.  
  26.     INPUTS
  27.     dest - The first byte of the destination area in memory
  28.     src - The first byte of the source area in memory
  29.     count - How many bytes to copy
  30.  
  31.     RESULT
  32.     dest.
  33.  
  34.     NOTES
  35.  
  36.     EXAMPLE
  37.  
  38.     BUGS
  39.  
  40.     SEE ALSO
  41.     memmove()
  42.  
  43.     INTERNALS
  44.  
  45.     HISTORY
  46.     24-12-95    digulla created
  47.  
  48. ******************************************************************************/
  49. {
  50.     CopyMem ((UBYTE *)src, dest, count);
  51.  
  52.     return dest;
  53. } /* memcpy */
  54.  
  55.