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