CompareMemory()

Syntax

Result = CompareMemory(*Buffer1, Offset1, *Buffer2, Offset2, Size)
Description
Compares the content of two memory buffers.

Parameters

*Buffer1 The addresses of the first memory buffer to compare. This buffer must have been allocated with AllocateMemory().
Offset1 The '*Buffer1' offset (in bytes) to compare.
*Buffer2 The addresses of the second memory buffer to compare. This buffer must have been allocated with AllocateMemory().
Offset2 The '*Buffer2' offset (in bytes) to compare.
Size The amount of bytes to compare.

Return value

Returns nonzero if the two areas contain the same bytes or zero if the content does not match.

See Also

AllocateMemory(), MemorySize()

Supported OS

All

<- AllocateStructure() - Memory Index - FreeMemory() ->