Write C Test Program