Caliper program in C language