[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LCLProc' (#lcl)

ComparePointers

Compares two pointers, returning the Sign of the difference.

Declaration

Source position: lclproc.pas line 144

function ComparePointers(

  p1: Pointer;

  p2: Pointer

):Integer;

Function result

+1 if p1 is higher than p2, -1 if p2 is higher than p1, 0 if both are equal.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.