crunch your code. Crunch is a unit testing framework written in C for C and C++.