home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Palm / libc / bcopy.c next >
C/C++ Source or Header  |  2000-12-21  |  420b  |  26 lines

  1. /*
  2.  *  linux/lib/string.c
  3.  *
  4.  *  Copyright (C) 1991, 1992  Linus Torvalds
  5.  */
  6.  
  7. #include <sys/types.h>
  8. #include <string.h>
  9. #include <ctype.h>
  10. #include "libc_segments.h"
  11.  
  12. #ifndef __HAVE_ARCH_BCOPY
  13. #undef bcopy
  14. char * bcopy(const char * src, char * dest, int count) SEG_LIBC;
  15. char * bcopy(const char * src, char * dest, int count)
  16. {
  17.   char *tmp = dest;
  18.   
  19.   while (count--)
  20.     *tmp++ = *src++;
  21.   
  22.   return dest;
  23. }
  24. #endif
  25.  
  26.