added some C code.