bycmpr()

Compares two groups of contiguous bytes, for a specified length, byte-by-byte.

Syntax

mint bycmpr(char *st1, char *st2, mint count);
  1. st1 is a pointer to the location where the first group of bytes starts.
  2. st2 is a pointer to the location where the second group of bytes starts.
  3. 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.