summaryrefslogtreecommitdiffstats
path: root/str_cpy.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 /str_cpy.c
downloadqmail-69aec538b456402170dc723af417ba5c05389c32.tar.gz
qmail-69aec538b456402170dc723af417ba5c05389c32.tar.bz2
qmail-69aec538b456402170dc723af417ba5c05389c32.zip
qmail 1.03 import
Diffstat (limited to 'str_cpy.c')
-rw-r--r--str_cpy.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/str_cpy.c b/str_cpy.c
new file mode 100644
index 0000000..453d790
--- /dev/null
+++ b/str_cpy.c
@@ -0,0 +1,16 @@
1#include "str.h"
2
3unsigned int str_copy(s,t)
4register char *s;
5register char *t;
6{
7 register int len;
8
9 len = 0;
10 for (;;) {
11 if (!(*s = *t)) return len; ++s; ++t; ++len;
12 if (!(*s = *t)) return len; ++s; ++t; ++len;
13 if (!(*s = *t)) return len; ++s; ++t; ++len;
14 if (!(*s = *t)) return len; ++s; ++t; ++len;
15 }
16}