projects
/
debian
/
amanda
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.4.4p3
[debian/amanda]
/
regex-src
/
fake
/
memmove.c
1
#include <stdio.h>
2
#include <string.h>
3
#include <sys/types.h>
4
5
/*
6
- memmove - fake ANSI C routine
7
*/
8
char *
9
memmove(dst, src, count)
10
char *dst;
11
char *src;
12
size_t count;
13
{
14
register char *s;
15
register char *d;
16
register size_t n;
17
18
if (dst > src)
19
for (d = dst+count, s = src+count, n = count; n > 0; n--)
20
*--d = *--s;
21
else
22
for (d = dst, s = src, n = count; n > 0; n--)
23
*d++ = *s++;
24
25
return(dst);
26
}