cfunct for main or single C function*