Is there any convenient CopyMemory function in Phobos?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Jun 13 17:38:23 PDT 2011
So why's it in core.stdc.string, instead of say.. core.memory?
Btw, I've had some imports already in the module and it seems these
two conflict:
import core.thread;
import core.stdc.string;
void main()
{
int* p, x;
memcpy(p, x, 1);
}
test.d(9): Error: core.stdc.string.memcpy at
D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\core\stdc\string.di(11)
conflicts with core.thread.memcpy at
D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\core\thread.di(37)
More information about the Digitalmars-d-learn
mailing list