source: CIVL/text/include/string.cvl@ de8de48

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since de8de48 was 4e153fc, checked in by Ziqing Luo <ziqing@…>, 12 years ago

remove $atom for the implementation of memcpy

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1736 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 317 bytes
RevLine 
[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 */
[4e153fc]11void* memcpy(void *p, const void *q, const size_t size) {
12 $bundle bundle = $bundle_pack(q, size);
13 $bundle_unpack(bundle, p);
[93eee6d]14 return p;
[e484c35]15}
[a0f0868]16
17#endif
Note: See TracBrowser for help on using the repository browser.