Is there any convenient CopyMemory function in Phobos?

Jonathan M Davis jmdavisProg at gmx.com
Mon Jun 13 17:21:52 PDT 2011


On 2011-06-13 17:01, Andrej Mitrovic wrote:
> Right, haven't thought about the C functions at all (silly me).
> Thanks, this did the trick:
> extern (C) void* memcpy(void*, const void*, size_t);

core.stdc.string has memcpy's declaration in it. You should be able to just 
import it rather than declaring memcpy yourself.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list