Create C implementations of a couple of routines.