source: CIVL/include/impls/string.cvl@ a389857

main test-branch
Last change on this file since a389857 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

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

  • Property mode set to 100644
File size: 342 bytes
Line 
1/* CIVL implementation of string.h */
2
3#ifndef __STRING_CIVL__
4#define __STRING_CIVL__
5
6#include<string.h>
7#include<bundle.cvh>
8
9/* Copies a region of memory */
10void* memcpy(void *p, const void *q, const size_t size) {
11 if(size == 0)
12 return p;
13 $bundle bundle = $bundle_pack(q, size);
14 $bundle_unpack(bundle, p);
15 return p;
16}
17
18#endif
Note: See TracBrowser for help on using the repository browser.