Simple C test homework