source: CIVL/include/impls/string.cvl@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 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
RevLine 
[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]10void* 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.