libstdc++: Fix std::chrono::file_clock conversions for low-precision times
[official-gcc.git] / libiberty / memmove.c
blob8c92d6b9c2104622056aa167706e074db532c3a7
1 /* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
2 /* This function is in the public domain. --Per Bothner. */
4 /*
6 @deftypefn Supplemental void* memmove (void *@var{from}, const void *@var{to}, @
7 size_t @var{count})
9 Copies @var{count} bytes from memory area @var{from} to memory area
10 @var{to}, returning a pointer to @var{to}.
12 @end deftypefn
16 #include <ansidecl.h>
17 #include <stddef.h>
19 void bcopy (const void*, void*, size_t);
21 void *
22 memmove (void *s1, const void *s2, size_t n)
24 bcopy (s2, s1, n);
25 return s1;