generated c with gernet