aboutsummaryrefslogtreecommitdiff
path: root/djb/byte_copyr.c
diff options
context:
space:
mode:
authorKlaatu <[email protected]>2015-05-17 15:33:21 +1200
committerKlaatu <[email protected]>2015-05-17 15:33:21 +1200
commitb0de699679e8f1e39af847ed172d1ba605b4370c (patch)
tree01dac00471d61f727394e508c613b29cff0ceae5 /djb/byte_copyr.c
bulk upload of source
Diffstat (limited to 'djb/byte_copyr.c')
-rw-r--r--djb/byte_copyr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/djb/byte_copyr.c b/djb/byte_copyr.c
new file mode 100644
index 0000000..9574ae7
--- /dev/null
+++ b/djb/byte_copyr.c
@@ -0,0 +1,8 @@
+void byte_copyr(void* dst, unsigned int n, const void* src) /*EXTRACT_INCL*/ {
+ char *d=(char*)dst;
+ char *s=(char*)src;
+ while (n) {
+ --n;
+ d[n] = s[n];
+ }
+}