1 /* Copyright (c) 1992, 1995 John E. Davis
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Perl Artistic License.
9 /* These routines are fast memcpy, memset routines. When available, I
10 use system rouines. For msdos, I use inline assembly. */
12 /* The current versions only work in the forward direction only!! */
20 char *SLmemcpy(char *s1
, char *s2
, int n
)
22 #if defined(msdos) && !defined(__WIN32__) && !defined(__GO32__)
37 register char *smax
, *s
= s1
;
44 *s
= *s2
; *(s
+ 1) = *(s2
+ 1); *(s
+ 2) = *(s2
+ 2); *(s
+ 3) = *(s2
+ 3);
48 while (n2
--) *s
++ = *s2
++;