[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LazUtilities' (#lazutils)

ComparePointers

Gets the relative order for the specified Pointers.

Declaration

Source position: lazutilities.pas line 26

function ComparePointers(

  p1: Pointer;

  p2: Pointer

):Integer;

Arguments

p1

  

Pointer compared in the routine.

p2

  

Pointer compared in the routine.

Function result

Numeric value with the relative order for the compared Pointers.

Description

ComparePointers is an Integer function used to get the relative order for the specified Pointer values. The following return values are used in the routine:

1
Returned when p1 > p2.
0
Returned when p1 = p2.
-1
Returned when p1 < p2.

Version 4.0 Generated 2025-05-03 Home