Kernel.bdh
Memcpy( inout sDest : string, in sSource : string, in nCount : number ): number;
value of nDest
Parameter | Description |
---|---|
sDest | Pointer to destination buffer |
sSource | Pointer to buffer to copy from |
nCount | Number of bytes to copy |
dcltrans transaction TMemcpy var sSource, sDest : string; begin sSource := Malloc(10); sDest := Malloc(10); Memset(sSource, ord('*'), 10); write("source buffer initialized"); writeln; Memcpy(sDest, sSource, 10); write("buffer copied"); writeln; Free(sSource); Free(sDest); end TMemcpy;
source buffer initialized buffer copied