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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: bcopy.c,v 1.6 1997/01/01 03:41:09 ldp Exp $
  4.  
  5.     Desc: ANSI C function bcopy()
  6.     Lang: english
  7. */
  8. #include <proto/exec.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.     int         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.     Overlapping memory areas are not supported. This should be fixed.
  40.  
  41.     SEE ALSO
  42.     memmove(), exec/CopyMem()
  43.  
  44.     INTERNALS
  45.  
  46.     HISTORY
  47.     22-10-96    ldp created
  48.  
  49. ******************************************************************************/
  50. {
  51.     (void) memmove (dst, src, len);
  52. } /* bcopy */
  53.  
  54.