C solution to the fizzbuzz programming challenge