Mock generator for C