[fpc-pascal] Move() vs MemCopy()
jonas.maebe at elis.ugent.be
Tue Sep 29 15:49:32 CEST 2009
On 29 Sep 2009, at 15:46, Graeme Geldenhuys wrote:
> Windows has 'memcpy()', not 'memcopy()' ;-)
memcpy() is from the C library. And the C library also has memmove(),
for that matter.
The difference between memcpy() and memmove() is that memcpy() has
undefined behaviour if the source and destination overlap, while
memmove() ensures that everything always works fine.
As a result, calling the Pascal version "move" is logical.
More information about the fpc-pascal