A simple implementation of HTCPCP on C