C the hard way