bcopy.c 414 B

123456789101112131415
  1. /* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
  2. * This file is part of the Linux-8086 C library and is distributed
  3. * under the GNU Library General Public License.
  4. */
  5. #include <unistd.h>
  6. #include <string.h>
  7. #include <sys/types.h>
  8. void bcopy(const __ptr_t src, __ptr_t dest, size_t len)
  9. {
  10. /* (void) memcpy(dest, src, len); */
  11. while (len--)
  12. *(char *) (dest++) = *(char *) (src++);
  13. }