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