Sign in Join
FPDoc Onlineexperiment

ComparePointers function

In unit LazUtilities

Gets the relative order for the specified Pointers.

Declaration

pascal
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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.