PXFUCOMPARE

POSIX Subroutine: Compares two unsigned integers.

Module

USE IFPOSIX

Syntax

CALL PXFUCOMPARE (i1,i2,icmpr,idiff)

i1, i2

(Input) INTEGER(4). The two unsigned integers to compare.

icmpr

(Output) INTEGER(4). The result of the comparison; one of the following values:

-1

If i1 < i2

0

If i1 = i2

1

If i1 > i2

idiff

(Output) INTEGER(4). The absolute value of the difference.

The PXFUCOMPARE subroutine compares two unsigned integers and returns the absolute value of their difference into idiff.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB