summaryrefslogtreecommitdiffstats
path: root/byte_cr.c
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2013-02-04 00:08:53 +0100
committermanuel <manuel@mausz.at>2013-02-04 00:08:53 +0100
commit69aec538b456402170dc723af417ba5c05389c32 (patch)
treee6f34c543f17c6392447ea337b2e2868212424d1 /byte_cr.c
downloadqmail-69aec538b456402170dc723af417ba5c05389c32.tar.gz
qmail-69aec538b456402170dc723af417ba5c05389c32.tar.bz2
qmail-69aec538b456402170dc723af417ba5c05389c32.zip
qmail 1.03 import
Diffstat (limited to 'byte_cr.c')
-rw-r--r--byte_cr.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/byte_cr.c b/byte_cr.c
new file mode 100644
index 0000000..3e7a1d5
--- /dev/null
+++ b/byte_cr.c
@@ -0,0 +1,16 @@
1#include "byte.h"
2
3void byte_copyr(to,n,from)
4register char *to;
5register unsigned int n;
6register char *from;
7{
8 to += n;
9 from += n;
10 for (;;) {
11 if (!n) return; *--to = *--from; --n;
12 if (!n) return; *--to = *--from; --n;
13 if (!n) return; *--to = *--from; --n;
14 if (!n) return; *--to = *--from; --n;
15 }
16}