Transplant these TC2.0 code into Standard C platform