custom C snippet for functions