Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2. FUNCTION
  3.         <<bcopy>>---copy memory regions
  4.  
  5. ANSI_SYNOPSIS
  6.         #include <strings.h>
  7.         void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>);
  8.  
  9. TRAD_SYNOPSIS
  10.         void bcopy(<[in]>, <[out]>, <[n]>
  11.         const void *<[in]>;
  12.         void *<[out]>;
  13.         size_t <[n]>;
  14.  
  15. DESCRIPTION
  16.         This function copies <[n]> bytes from the memory region
  17.         pointed to by <[in]> to the memory region pointed to by
  18.         <[out]>.
  19.  
  20.         This function is implemented in term of <<memmove>>.
  21.  
  22. PORTABILITY
  23. <<bcopy>> requires no supporting OS subroutines.
  24.  
  25. QUICKREF
  26.         bcopy - pure
  27. */
  28.  
  29. #include <string.h>
  30. #include <strings.h>
  31.  
  32. void
  33. _DEFUN (bcopy, (b1, b2, length),
  34.         _CONST void *b1 _AND
  35.         void *b2 _AND
  36.         size_t length)
  37. {
  38.   memmove (b2, b1, length);
  39. }
  40.