1 /***********************************************************
2 Copyright (c) 2000, BeOpen.com.
3 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
7 See the file "Misc/COPYRIGHT" for information on usage and
8 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9 ******************************************************************/
11 /* A perhaps slow but I hope correct implementation of memmove */
13 extern char *memcpy(char *, char *, int);
16 memmove(char *dst
, char *src
, int n
)
21 if (src
>= dst
+n
|| dst
>= src
+n
)
22 return memcpy(dst
, src
, n
);