C implementation in report