source:
CIVL/text/include/string.h@
0c69eda
| Last change on this file since 0c69eda was a0f0868, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 313 bytes | |
| Line | |
|---|---|
| 1 | /* CIVL model of string.h */ |
| 2 | |
| 3 | #ifdef __STRING__ |
| 4 | #else |
| 5 | #define __STRING__ |
| 6 | #include<string-common.h> |
| 7 | #include<civlc.h> |
| 8 | |
| 9 | /* Copies a region of memory */ |
| 10 | void* memcpy(void *p, void *q, const size_t size) { |
| 11 | $atom { |
| 12 | $bundle bundle = $bundle_pack(q, size); |
| 13 | $bundle_unpack(bundle, p); |
| 14 | } |
| 15 | return p; |
| 16 | } |
| 17 | |
| 18 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
