home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / clib / bcopy.c next >
Encoding:
C/C++ Source or Header  |  1978-03-06  |  981 b   |  54 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: bcopy.c,v 1.2 1996/10/29 03:00:36 aros Exp $
  4.  
  5.     Desc: bcopy()
  6.     Lang: english
  7. */
  8. #include <clib/exec_protos.h>
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13.     #include <string.h>
  14.  
  15.     void bcopy (
  16.  
  17. /*  SYNOPSIS */
  18.     const void * src,
  19.     void *       dst,
  20.     size_t       len)
  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.     src - The first byte of the source area in memory
  28.     dst - The first byte of the destination area in memory
  29.     len - How many bytes to copy.
  30.  
  31.     RESULT
  32.  
  33.     NOTES
  34.     The original bcopy() allows overlapping src and dst.
  35.  
  36.     EXAMPLE
  37.  
  38.     BUGS
  39.  
  40.     SEE ALSO
  41.     memmove(), exec/CopyMem()
  42.  
  43.     INTERNALS
  44.  
  45.     HISTORY
  46.     22-10-96    ldp created
  47.  
  48. ******************************************************************************/
  49. {
  50.     CopyMem ((UBYTE *)src, dst, len);
  51.  
  52. } /* bcopy */
  53.  
  54.