finishing registering C routines