aboutsummaryrefslogtreecommitdiff
path: root/djb/byte_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'djb/byte_copy.c')
-rw-r--r--djb/byte_copy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/djb/byte_copy.c b/djb/byte_copy.c
new file mode 100644
index 0000000..84d9f45
--- /dev/null
+++ b/djb/byte_copy.c
@@ -0,0 +1,7 @@
+void byte_copy(void *to, unsigned int n, const void *from) /*EXTRACT_INCL*/ {
+ char *d=(char*)to;
+ char *s=(char*)from;
+ unsigned int k=0;
+ for (; k<n; k++) d[k] = s[k];
+}
+