Update cmp.c

Plan9 approach