C boilerplate that I'm tired of duplicating