diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-07-15 12:58:15 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-07-15 12:58:15 +0000 |
commit | 0b24c8633addf873c72ef18e6ca5c0cd5ded1791 (patch) | |
tree | 7f7d6c01b47d410cb3fb069a57107b6592e527d9 /support/memmove.c | |
parent | ccbb7b73ea66c6d2bfd91628badbc4468669581b (diff) | |
download | shared-mime-info-0b24c8633addf873c72ef18e6ca5c0cd5ded1791.tar.gz |
Initial revision
svn path=/trunk/; revision=275
Diffstat (limited to 'support/memmove.c')
-rw-r--r-- | support/memmove.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/support/memmove.c b/support/memmove.c new file mode 100644 index 00000000..818fc249 --- /dev/null +++ b/support/memmove.c @@ -0,0 +1,18 @@ +/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */ +/* This function is in the public domain. --Per Bothner. */ +#include <ansidecl.h> +#ifdef __STDC__ +#include <stddef.h> +#else +#define size_t unsigned long +#endif + +PTR +memmove (s1, s2, n) + PTR s1; + CONST PTR s2; + size_t n; +{ + bcopy (s2, s1, n); + return s1; +} |