source:
CIVL/text/include/string.cvl@
ee38d17
| Last change on this file since ee38d17 was 06d6af3, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 329 bytes | |
| Rev | Line | |
|---|---|---|
| [06d6af3] | 1 | /* CIVL implementation of string.h */ |
| [e484c35] | 2 | |
| [06d6af3] | 3 | #ifdef __STRING_CIVL__ |
| [e484c35] | 4 | #else |
| [06d6af3] | 5 | #define __STRING_CIVL__ |
| 6 | ||
| 7 | #include<string.h> | |
| [a0aa644] | 8 | #include<bundle.cvh> |
| [e484c35] | 9 | |
| 10 | /* Copies a region of memory */ | |
| [93eee6d] | 11 | void* memcpy(void *p, void *q, const size_t size) { |
| [e484c35] | 12 | $atom { |
| 13 | $bundle bundle = $bundle_pack(q, size); | |
| 14 | $bundle_unpack(bundle, p); | |
| 15 | } | |
| [93eee6d] | 16 | return p; |
| [e484c35] | 17 | } |
| [a0f0868] | 18 | |
| 19 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
