Compares two groups of contiguous bytes, for a specified length,
byte-by-byte.
Syntax
mint bycmpr(char *st1, char *st2, mint count);
- st1 is a pointer to the location where the first group of bytes starts.
- st2 is a pointer to the location where the second group of bytes starts.
- count is the number of bytes to compare.
Returns
Table 1. Return codes
Code |
Description |
0 |
The two groups of bytes are identical. |
1 |
The st1 group of bytes
is less than the st2 group. |
-1 |
The st1 group of bytes
is greater than the st2group. |