To put a delay in your program, call the time delay function, time_delay():
int time_delay(hsec) long hsec; /* Hundredths of a second to delay program */
Function time_delay() waits the specified amount of time and then returns. Note that not all UNIX systems support delays in hundredths of a second.