-
Declaration:
- function CompareWord(var buf1,buf2;len:longint):longint;
-
Description:
- CompareWord compares two memory regions buf1,buf2 on a Word-per-Word basis for a
total of len Words. (A Word is 2 bytes).
The function returns one of the following values:
-
-1
- if buf1 and buf2 contain different Words in the first len Words, and the first such Word
is smaller in buf1 than the Word at the same position in buf2.
-
0
- if the first len Words in buf1 and buf2 are equal.
-
1
- if buf1 and buf2 contain different Words in the first len Words, and the first such Word
is larger in buf1 than the Word at the same position in buf2.
-
Errors:
- None.
-
See also:
- CompareChar (468),CompareByte (466),CompareWord (472),
Listing: refex/ex102.pp