From 220534453eecc2c07ad710d72268aafd20b83138 Mon Sep 17 00:00:00 2001 From: joe Date: Fri, 8 May 2015 23:07:47 -0400 Subject: initial commit --- byte_copy.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 byte_copy.c (limited to 'byte_copy.c') 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 @@ +/* Public domain. */ + +#include "byte.h" + +void byte_copy(to,n,from) +register char *to; +register unsigned int n; +register char *from; +{ + for (;;) { + if (!n) return; *to++ = *from++; --n; + if (!n) return; *to++ = *from++; --n; + if (!n) return; *to++ = *from++; --n; + if (!n) return; *to++ = *from++; --n; + } +} -- cgit v1.2.3