From edabb16494a217391eee78fb4eda6e2741e4615b Mon Sep 17 00:00:00 2001 From: jean Date: Tue, 16 Feb 1999 12:38:46 +0000 Subject: [PATCH] copied from lib/crtdll/string/memcpy.c svn path=/trunk/; revision=241 --- reactos/lib/ntdll/string/memcpy.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 reactos/lib/ntdll/string/memcpy.c diff --git a/reactos/lib/ntdll/string/memcpy.c b/reactos/lib/ntdll/string/memcpy.c new file mode 100644 index 00000000000..0e117013f2b --- /dev/null +++ b/reactos/lib/ntdll/string/memcpy.c @@ -0,0 +1,19 @@ +typedef unsigned int size_t; + +void * +memcpy (char *to, char *from, size_t count); + +/* This is the most reliable way to avoid incompatibilities + in available built-in functions on various systems. */ +void * +memcpy (char *to, char *from, size_t count) +{ + register char *f = from; + register char *t = to; + register int i = count; + + while (i-- > 0) + *t++ = *f++; + + return to; +}