Here is a possible generation of the C-style compare function It can used in the following ways: Here is a function that generates a list of a 'less than', 'equal to', and 'greater than' from a C-style compare function:
> (define strcmp (make-comparator string<?))
> (strcmp "abe" "kat")
-1
> (strcmp "kat" "abe")
1
> (strcmp "kat" "kat")
0