register C functions in a simple way