c version of tmc