c exercises roughly following http://c.learncodethehardway.org/