added some c code for comparison
added c code for comparison