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