projects
/
mmh
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rearranged whitespace (and comments) in all the code!
[mmh]
/
sbr
/
memmove.c
1
/* public domain function from Jan Wolter Unix Incompatibility Notes */
2
/* http://unixpapa.com/incnote/ */
3
char *
4
memmove(char *dst, char *src, int n)
5
{
6
if (src > dst)
7
for ( ; n > 0; n--)
8
*(dst++)= *(src++);
9
else
10
for (dst+= n-1, src+= n-1; n > 0; n--)
11
*(dst--)= *(src--);
12
}