C implementation of the Baking Pi tutorials