[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

CompareMem

Compare two memory areas.

Declaration

Source position: sysstrh.inc line 73

function CompareMem(

  P1: Pointer;

  P2: Pointer;

  Length: cardinal

):Boolean;

Description

CompareMemcompares, byte by byte, 2 memory areas pointed to by P1and P2, for a length of Lbytes.

It returns the following values:

<0
if at some position the byte at P1is less than the byte at the same postion at P2.
0
if all Lbytes are the same.
>0
if at some position the byte at P1is greater than the byte at the same postion at P2.