Update cat.c

Plan9 approach