summaryrefslogtreecommitdiff
path: root/byte_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'byte_copy.c')
-rw-r--r--byte_copy.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/byte_copy.c b/byte_copy.c
new file mode 100644
index 0000000..74c9e4a
--- /dev/null
+++ b/byte_copy.c
@@ -0,0 +1,16 @@
1/* Public domain. */
2
3#include "byte.h"
4
5void byte_copy(to,n,from)
6register char *to;
7register unsigned int n;
8register char *from;
9{
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}