Template functions for c projects