Initial commit of the c code for Pru test