source:
CIVL/mods/dev.civl.com/include/impls/string.cvl@
bc0fbae
| Last change on this file since bc0fbae was b4b3b0d, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 342 bytes | |
| Line | |
|---|---|
| 1 | /* CIVL implementation of string.h */ |
| 2 | |
| 3 | #ifndef __STRING_CIVL__ |
| 4 | #define __STRING_CIVL__ |
| 5 | |
| 6 | #include<string.h> |
| 7 | #include<bundle.cvh> |
| 8 | |
| 9 | /* Copies a region of memory */ |
| 10 | void* memcpy(void *p, const void *q, const size_t size) { |
| 11 | if(size == 0) |
| 12 | return p; |
| 13 | $bundle bundle = $bundle_pack(q, size); |
| 14 | $bundle_unpack(bundle, p); |
| 15 | return p; |
| 16 | } |
| 17 | |
| 18 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
